Type Alias IEventBusAdapter

IEventBusAdapter: {
    addListener(
        eventName: string,
        listener: EventListenerFn<BaseEvent<Record<string, unknown>>>,
    ): PromiseLike<void>;
    dispatch(
        eventName: string,
        eventData: BaseEvent<Record<string, unknown>>,
    ): PromiseLike<void>;
    removeListener(
        eventName: string,
        listener: EventListenerFn<BaseEvent<Record<string, unknown>>>,
    ): PromiseLike<void>;
}

The IEventBusAdapter contract defines a way for dispatching and listening to events independent of underlying technology. This contract is not meant to be used directly, instead you should use IEventBus

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

Type declaration