Type Alias IEventBusFactory<TAdapters>

IEventBusFactory: {
    use<TEventMap extends BaseEventMap>(
        adapterName?: TAdapters,
    ): IEventBus<TEventMap>;
}

The IEventBusFactory contract makes it easy to configure and switch between different IEventBus dynamically.

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

Type Parameters

  • TAdapters extends string = string

Type declaration