mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 13:00:19 +00:00
[@types/amqp-connection-manager] Added missing ChannelWrapper.removeSetup()
This commit is contained in:
+10
-1
@@ -136,7 +136,16 @@ export interface ChannelWrapper extends EventEmitter {
|
||||
* Setup functions should, ideally, not throw errors, but if they do then the ChannelWrapper will emit an 'error' event.
|
||||
* @param func
|
||||
*/
|
||||
addSetup(func: SetupFunc): Promise<void>;
|
||||
addSetup(func: SetupFunc): Promise<void>;
|
||||
|
||||
/**
|
||||
* Remove a setup function added with `addSetup`. If there is currently a
|
||||
* connection, `teardown(channel, [cb])` will be run immediately, and the
|
||||
* returned Promise will not resolve until it completes.
|
||||
* @param func
|
||||
* @param [tearDown]
|
||||
*/
|
||||
removeSetup(func: SetupFunc, tearDown?: SetupFunc): Promise<void>;
|
||||
|
||||
/**
|
||||
* @see amqplib
|
||||
|
||||
Reference in New Issue
Block a user