@swarnami/rabbitmq-core 1.0.1 → 2.0.1

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.
package/dist/index.d.ts CHANGED
@@ -4,8 +4,10 @@ type RabbitConnectionOptions = {
4
4
  servername?: string;
5
5
  };
6
6
 
7
- declare function publishMessage(options: RabbitConnectionOptions, queue: string, payload: unknown): Promise<void>;
7
+ declare function initRabbitMQ(options?: RabbitConnectionOptions): void;
8
8
 
9
- declare function consumeMessage(options: RabbitConnectionOptions, queue: string, handler: (data: any) => Promise<void>): Promise<void>;
9
+ declare function publishMessage(queue: string, payload: unknown): Promise<void>;
10
10
 
11
- export { type RabbitConnectionOptions, consumeMessage, publishMessage };
11
+ declare function consumeMessage(queue: string, handler: (data: any) => Promise<void>): Promise<void>;
12
+
13
+ export { consumeMessage, initRabbitMQ, publishMessage };