Type Alias IEventDispatcher<TEvents>

IEventDispatcher<TEvents>: {
    dispatch(event: TEvents): LazyPromise<void>;
    dispatchMany(events: TEvents[]): 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