Type Alias IEventBusAdapter IEvent Bus Adapter : { 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 ; } Type declaration add Listener : functionadd Listener ( eventName , listener ) : PromiseLike < void > Returns PromiseLike < void > dispatch : functiondispatch ( eventName , eventData ) : PromiseLike < void > Parameters eventName : string eventData : BaseEvent < Record < string , unknown > > Returns PromiseLike < void > get Group : functionget Group ( ) : string Returns string remove Listener : functionremove Listener ( eventName , listener ) : PromiseLike < void > Returns PromiseLike < void > with Group : function
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