amqpx / index / BatchConsumerCallbackArgs
Type Alias: BatchConsumerCallbackArgs<Message, AdditionalProperties>
BatchConsumerCallbackArgs<
Message,AdditionalProperties> =object
Defined in: src/consumer/types.ts:64
Arguments passed to a batch consumer callback. Contains the channel and an array of message entries, each holding the parsed payload, the raw amqplib message, and any additional properties added by the consumer implementation.
Type Parameters
| Type Parameter | Default type |
|---|---|
Message | - |
AdditionalProperties | Record<string, unknown> |
Properties
| Property | Type | Defined in |
|---|---|---|
channel | Channel | src/consumer/types.ts:65 |
messages | object & AdditionalProperties[] | src/consumer/types.ts:66 |