Skip to content

Commit dba37ec

Browse files
fix: change definition in config
1 parent 3f9414e commit dba37ec

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nestjstools/messaging",
3-
"version": "2.20.0",
3+
"version": "2.20.1",
44
"description": "Simplifies asynchronous and synchronous message handling with support for buses, handlers, channels, and consumers. Build scalable, decoupled applications with ease and reliability.",
55
"author": "Sebastian Iwanczyszyn",
66
"license": "MIT",

src/config.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,45 +10,38 @@ export interface MessagingModuleOptions extends MandatoryMessagingModuleOptions
1010
}
1111

1212
/**
13-
* @description
1413
* Configuration for a messaging bus.
1514
* Each bus is identified by a unique name and is associated with one or more channels.
1615
* Define buses if you want to enable sending messages over specific channels.
1716
*/
1817
export interface DefineBusOption {
1918
/**
20-
* @description
2119
* Unique name of your bus
2220
*/
2321
name: string;
2422
/**
25-
* @description
2623
* List of channel names the message will be sent through.
2724
*/
2825
channels: string[];
2926
}
3027

3128
export class ChannelConfig {
3229
/**
33-
* @description
3430
* If true, suppresses errors when no handler is found for a message on this channel.
3531
* Useful for optional or loosely coupled message handling.
3632
*/
3733
public readonly avoidErrorsForNotExistedHandlers?: boolean;
3834
/**
39-
* @description
4035
* An array of middleware objects to be applied to messages passing through this channel.
4136
* Middleware can be used for logging, transformation, validation, etc.
4237
*/
4338
public readonly middlewares?: object[];
4439
/**
45-
* @description
4640
* Enables or disables the consumer (listener) for this channel.
4741
* If set to false, the channel will not actively consume messages.
4842
*/
4943
public readonly enableConsumer?: boolean;
5044
/**
51-
* @description
5245
* Optional message normalizer to process or transform messages before they are handled & before send.
5346
* Can be used to enforce consistent message structure.
5447
*/
@@ -69,8 +62,7 @@ export class ChannelConfig {
6962
}
7063

7164
/**
72-
* @deprecated
73-
* Will be removed in version 3.x - use RmqChannelConfig from @nestjstools/messaging-rabbitmq-extension version 2.11+
65+
* @deprecated Will be removed in version 3.x - use RmqChannelConfig from @nestjstools/messaging-rabbitmq-extension version 2.11+
7466
*/
7567
export class AmqpChannelConfig extends ChannelConfig {
7668
public readonly connectionUri: string;

0 commit comments

Comments
 (0)