Type Alias IEventBusAdapter

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

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