Skip to content

API reference / @node-ts/bus-core / HandlerFor

Interface: HandlerFor<TMessageType, THandler> ​

Defined in: packages/bus-core/src/handler/handler-for.ts:67

A message type and the handler declared for it with handlerFor, ready to pass to withHandler

Type Parameters ​

Type Parameter
TMessageType extends Message
THandler

Properties ​

PropertyTypeDescriptionDefined in
messageHandlerTHandlerThe handler, typed as it was givenpackages/bus-core/src/handler/handler-for.ts:75
messageTypeMessageDeclaration<TMessageType>The message class or definition the handler handlespackages/bus-core/src/handler/handler-for.ts:71

Released under the MIT License.