Client constructor still accepts a string

This commit is contained in:
benny-medflyt
2017-11-18 12:26:33 +02:00
committed by GitHub
parent 35272568c9
commit 5054ffa5fe
+1 -1
View File
@@ -93,7 +93,7 @@ export class Pool extends events.EventEmitter {
}
export class Client extends events.EventEmitter {
constructor(config: ClientConfig);
constructor(config: string | ClientConfig);
connect(): Promise<void>;
connect(callback: (err: Error) => void): void;