Skip to content

Commit 492e4b7

Browse files
fix: do not remove comments after build
1 parent dba37ec commit 492e4b7

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/config.ts

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

1212
/**
13+
* @description
1314
* Configuration for a messaging bus.
1415
* Each bus is identified by a unique name and is associated with one or more channels.
1516
* Define buses if you want to enable sending messages over specific channels.
1617
*/
1718
export interface DefineBusOption {
1819
/**
20+
* @description
1921
* Unique name of your bus
2022
*/
2123
name: string;
2224
/**
25+
* @description
2326
* List of channel names the message will be sent through.
2427
*/
2528
channels: string[];
2629
}
2730

2831
export class ChannelConfig {
2932
/**
33+
* @description
3034
* If true, suppresses errors when no handler is found for a message on this channel.
3135
* Useful for optional or loosely coupled message handling.
3236
*/
3337
public readonly avoidErrorsForNotExistedHandlers?: boolean;
3438
/**
39+
* @description
3540
* An array of middleware objects to be applied to messages passing through this channel.
3641
* Middleware can be used for logging, transformation, validation, etc.
3742
*/
3843
public readonly middlewares?: object[];
3944
/**
45+
* @description
4046
* Enables or disables the consumer (listener) for this channel.
4147
* If set to false, the channel will not actively consume messages.
4248
*/
4349
public readonly enableConsumer?: boolean;
4450
/**
51+
* @description
4552
* Optional message normalizer to process or transform messages before they are handled & before send.
4653
* Can be used to enforce consistent message structure.
4754
*/

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"declaration": true,
5-
"removeComments": true,
5+
"removeComments": false,
66
"emitDecoratorMetadata": true,
77
"experimentalDecorators": true,
88
"allowSyntheticDefaultImports": true,
@@ -16,6 +16,6 @@
1616
"noImplicitAny": false,
1717
"strictBindCallApply": false,
1818
"forceConsistentCasingInFileNames": false,
19-
"noFallthroughCasesInSwitch": false
19+
"noFallthroughCasesInSwitch": false,
2020
}
2121
}

0 commit comments

Comments
 (0)