Type Alias IEventDispatcher<TEventMap>

IEventDispatcher: {
    dispatch<TEventName extends string | number | symbol>(
        eventName: TEventName,
        event: TEventMap[TEventName],
    ): LazyPromise<void>;
}

The IEventDispatcher contract defines a way for dispatching to events independent of underlying technology.

IMPORT_PATH: "@daiso-tech/core/event-bus/contracts"

Type Parameters

Type declaration