Interface: IDispacher<IncomingEventType, OutgoingResponseType>
Interface: IDispacher<IncomingEventType, OutgoingResponseType>
Defines the structure for route dispatchers.
Type Parameters
IncomingEventType
IncomingEventType extends IIncomingEvent
OutgoingResponseType
OutgoingResponseType = unknown
Properties
dispatch()
dispatch: (context) => Promiseable<OutgoingResponseType>;
Parameters
context
DispatcherContext<IncomingEventType, OutgoingResponseType>
Returns
Promiseable<OutgoingResponseType>
getName()
getName: (route) => Promiseable<string>;
Parameters
route
Route<IncomingEventType, OutgoingResponseType>
Returns
Promiseable<string>
