@munlib/common 1.0.60 → 1.0.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Channel } from "amqplib";
1
+ import { Channel, ConsumeMessage } from "amqplib";
2
2
  interface ListenerData<T> {
3
3
  data: T;
4
4
  }
@@ -9,7 +9,7 @@ export declare abstract class Listener<T extends ListenerData<T["data"]>> {
9
9
  private exchangeType;
10
10
  private queueName;
11
11
  private routingKey;
12
- abstract onMessage(data: T["data"], msg: any, channel: Channel): void;
12
+ abstract onMessage(data: T["data"], msg: ConsumeMessage, channel: Channel): void;
13
13
  constructor(exchangeName: string, exchangeType: string, queueName: string, routingKey: string);
14
14
  connect(): Promise<void>;
15
15
  close(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@munlib/common",
3
- "version": "1.0.60",
3
+ "version": "1.0.61",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",