Update packages/microservices/server/server-rmq.ts

Co-authored-by: Rick Dutour Geerling <rick@trilon.io>
This commit is contained in:
Kamil Mysliwiec
2024-11-18 15:26:15 +01:00
committed by GitHub
parent 4f55f88bff
commit 129fe79f6b

View File

@@ -34,14 +34,14 @@ import { Server } from './server';
// because it would require the user to install the amqplib package even if they dont use RabbitMQ
// Otherwise, TypeScript would fail to compile the code.
//
type AmqpConnectionManager =
import('amqp-connection-manager').AmqpConnectionManager;
type ChannelWrapper = import('amqp-connection-manager').ChannelWrapper;
type Message = import('amqplib').Message;
// type AmqpConnectionManager =
// import('amqp-connection-manager').AmqpConnectionManager;
// type ChannelWrapper = import('amqp-connection-manager').ChannelWrapper;
// type Message = import('amqplib').Message;
// type AmqpConnectionManager = any;
// type ChannelWrapper = any;
// type Message = any;
type AmqpConnectionManager = any;
type ChannelWrapper = any;
type Message = any;
let rmqPackage = {} as any; // as typeof import('amqp-connection-manager');