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 Parameter | Default type |
|---|---|
MessageType | any |
Properties
| Property | Type | Description | Defined in |
|---|---|---|---|
resolveWith | (message) => boolean | A resolver function that will be executed for each read message to determine if it's to be handled by the handler declaring this resolver | packages/bus-core/src/handler/handler-registry.ts:24 |
topicIdentifier? | string | If 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 |