mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #8678 from jamesmoey/bugfix/rabbit.js
Update rabbit.js definition.
This commit is contained in:
Vendored
+2
@@ -22,6 +22,7 @@ declare module "rabbit.js" {
|
||||
persistent?: any;
|
||||
topic?: any;
|
||||
task?: any;
|
||||
routing?: any;
|
||||
}
|
||||
|
||||
export interface Socket {
|
||||
@@ -43,6 +44,7 @@ declare module "rabbit.js" {
|
||||
export class SubSocket extends stream.Readable implements Socket {
|
||||
constructor(channel: string, opts: SocketOptions);
|
||||
connect(source: string, callback?: Function): any;
|
||||
connect(source: string, topic?: string, callback?: Function): any;
|
||||
setsockopt(opt: string, value: string): any;
|
||||
close(): any;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user