Type Alias IGroupableEventBus<TEvents>

IGroupableEventBus<TEvents>: IEventBus<TEvents> & {
    withGroup(group: OneOrMore<string>): IEventBus<TEvents>;
}

The IGroupableEventBus contract defines a way for dispatching and listening to events independent of underlying technology. It commes with one extra method which is useful for multitennat applications compared to IEventBus.

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

Type Parameters

Type declaration