Type Alias IEventBusFactory<TAdapters>

IEventBusFactory<TAdapters>: {
    use<TEvents>(adapterName?: TAdapters): IGroupableEventBus<TEvents>;
}

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

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

Type Parameters

  • TAdapters extends string = string

Type declaration