@rotomeca/event - v5.0.0
    Preparing search index...

    Type Alias EventGetOption<T, TCallback>Internal

    Paramètres internes passés à _get lors de la récupération ou de la création d'un événement.

    type EventGetOption<T, TCallback extends Func> = {
        initializator: AnyInitializator<IEventHandler, T>;
        listenerCacheKey: symbol;
        onError: OnErrorCallback<T, TCallback>;
        target: WithCache<T>;
    }

    Type Parameters

    • T

      Type de l'instance cible.

    • TCallback extends Func

      Type du callback de l'événement, doit étendre Func.

    Index

    Properties

    initializator: AnyInitializator<IEventHandler, T>

    Fonction d'initialisation optionnelle appelée à la création de l'événement.

    listenerCacheKey: symbol

    Clé de symbole unique identifiant l'événement dans le cache.

    Callback appelé si l'initialisation lève une erreur.

    target: WithCache<T>

    Instance cible enrichie du cache.