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