Skip to content

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

Interface: CustomResolver<MessageType> ​

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

Provide a way for externally managed messages to be handled by the Bus

Type Parameters ​

Type ParameterDefault type
MessageTypeany

Properties ​

PropertyTypeDescriptionDefined in
resolveWith(message) => booleanA resolver function that will be executed for each read message to determine if it's to be handled by the handler declaring this resolverpackages/bus-core/src/handler/handler-registry.ts:24
topicIdentifier?stringIf provided, will attempt to subscribe the queue to this topic. If not provided, assumes that the queue will be subscribed to the topic manually.packages/bus-core/src/handler/handler-registry.ts:30

Released under the MIT License.