@brainhubeu/sqrs › "events/EventHandlerProvider"
Ƭ EventHandlerProvider: function
Defined in events/EventHandlerProvider.ts:18
A function that resolves an event handler by the event type.
param
event type
interface
EventHandlerProvider
▸ (type
: string): EventHandler[]
Parameters:
Name | Type |
---|---|
type |
string |
• eventHandlerProviderId: symbol & BoundType‹function› = depId('EventHandlerProvider')
Defined in events/EventHandlerProvider.ts:10
DependencyIdentifier of EventHandlerProvider
▸ containerEventHandlerProviderFactory(container
: Container): EventHandlerProvider
Defined in events/EventHandlerProvider.ts:26
Creates a function that resolves event handler from the container for a given event by it's type
Parameters:
Name | Type |
---|---|
container |
Container |
Returns: EventHandlerProvider