Type Alias IEventBusAdapter IEventBusAdapter : { addListener ( eventName : string , listener : EventListenerFn < BaseEvent < Record < string , unknown > > > , ) : PromiseLike < void > ; dispatch ( eventName : string , eventData : BaseEvent < Record < string , unknown > > , ) : PromiseLike < void > ; removeListener ( eventName : string , listener : EventListenerFn < BaseEvent < Record < string , unknown > > > , ) : PromiseLike < void > ; } Type declaration addListener : functionaddListener ( eventName : string , listener : EventListenerFn < BaseEvent < Record < string , unknown > > > , ) : PromiseLike < void > Returns PromiseLike < void > dispatch : functiondispatch ( eventName : string , eventData : BaseEvent < Record < string , unknown > > , ) : PromiseLike < void > Parameters eventName : string eventData : BaseEvent < Record < string , unknown > > Returns PromiseLike < void > removeListener : functionremoveListener ( eventName : string , listener : EventListenerFn < BaseEvent < Record < string , unknown > > > , ) : PromiseLike < void > Returns PromiseLike < void >
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 useIEventBus
IMPORT_PATH:
"@daiso-tech/core/event-bus/contracts"