Type Alias: FunctionalEventHandler()<TEvent, UResponse>
Type Alias: FunctionalEventHandler()<TEvent, UResponse>
type FunctionalEventHandler<TEvent, UResponse> = (incomingEvent) => Promiseable<UResponse>;
FunctionalEventHandler.
Represents a function that handles incoming events and returns an outgoing response.
Type Parameters
TEvent
TEvent extends IncomingEvent
UResponse
UResponse = unknown
Parameters
incomingEvent
TEvent
The incoming event to handle.
Returns
Promiseable<UResponse>
The outgoing response.
