Type Alias: FactoryEventHandler()<IncomingEventType, OutgoingResponseType>
Type Alias: FactoryEventHandler()<IncomingEventType, OutgoingResponseType>
type FactoryEventHandler<IncomingEventType, OutgoingResponseType> = (resolver?) => FunctionalEventHandler<IncomingEventType, OutgoingResponseType>;
Represents a factory event handler.
Type Parameters
IncomingEventType
IncomingEventType extends IIncomingEvent
The type representing the incoming event.
OutgoingResponseType
OutgoingResponseType = unknown
The type representing the outgoing response.
Parameters
resolver?
The route resolver.
DependencyResolver | IContainer | any
Returns
FunctionalEventHandler<IncomingEventType, OutgoingResponseType>
A functional event handler.
