---
url: https://node-ts.github.io/bus/api/bus-core/interfaces/CustomResolver.md
---
[API reference](../../index.md) / [@node-ts/bus-core](../index.md) / CustomResolver

# Interface: CustomResolver\<MessageType>

Defined in: [packages/bus-core/src/handler/handler-registry.ts:19](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-core/src/handler/handler-registry.ts#L19)

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 |
| ------ | ------ | ------ | ------ |
| <a id="property-resolvewith"></a> `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](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-core/src/handler/handler-registry.ts#L24) |
| <a id="property-topicidentifier"></a> `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](https://github.com/node-ts/bus/blob/2e6cf65c27833b707ae31ee623cfb6343770f434/packages/bus-core/src/handler/handler-registry.ts#L30) |
