Type Alias IEventBusAdapter

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

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

Type declaration