Skip to content

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

Type Alias: HandlerDefinition<TMessage, TMessageAttributes> ​

ts
type HandlerDefinition<TMessage, TMessageAttributes> = 
  | FunctionHandler<TMessage, TMessageAttributes>
  | ClassConstructor<Handler<MessageBase, TMessageAttributes>>
| ClassConstructor<CustomHandler<TMessage>>;

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

Type Parameters ​

Type ParameterDefault type
TMessageany
TMessageAttributes extends MessageAttributesMessageAttributes

Released under the MIT License.