From eb7c8b917878ee15258e0d4caab1c3fbd6a0a1a0 Mon Sep 17 00:00:00 2001 From: Igor Morozov Date: Thu, 27 Feb 2020 22:12:06 +0300 Subject: [PATCH] [amqp-connection-manager] Fix waitForConnect (#42677) --- types/amqp-connection-manager/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/amqp-connection-manager/index.d.ts b/types/amqp-connection-manager/index.d.ts index 60cc1ec6cb..62db649444 100644 --- a/types/amqp-connection-manager/index.d.ts +++ b/types/amqp-connection-manager/index.d.ts @@ -114,11 +114,6 @@ export interface AmqpConnectionManager extends EventEmitter { * Close this AmqpConnectionManager and free all associated resources. */ close(): Promise; - - /** - * Returns a Promise which resolves when this channel next connects. - */ - waitForConnect(): Promise; } export interface ChannelWrapper extends EventEmitter { @@ -211,4 +206,9 @@ export interface ChannelWrapper extends EventEmitter { * Close a channel, clean up resources associated with it. */ close(): Promise; + + /** + * Returns a Promise which resolves when this channel next connects. + */ + waitForConnect(): Promise; }