Type Alias: EventHandlerType<TEvent, UResponse>
Type Alias: EventHandlerType<TEvent, UResponse>
type EventHandlerType<TEvent, UResponse> =
| EventHandlerClass<TEvent, UResponse>
| FunctionalEventHandler<TEvent, UResponse>
| FactoryEventHandler<TEvent, UResponse>;
EventHandler Interface. Represents an event handler that can handle incoming events and return outgoing responses.
Type Parameters
TEvent
TEvent
extends IncomingEvent
= IncomingEvent
UResponse
UResponse
= unknown
Template
UResponse