mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-29 21:30:18 +00:00
Connection.connect() Promise returns a Connection instance.
This commit is contained in:
Vendored
+1
-1
@@ -145,7 +145,7 @@ export declare class Connection extends events.EventEmitter {
|
||||
public connecting: boolean;
|
||||
public driver: string;
|
||||
public constructor(config: config, callback?: (err?: any) => void);
|
||||
public connect(): Promise<void>;
|
||||
public connect(): Promise<Connection>;
|
||||
public connect(callback: (err: any) => void): void;
|
||||
public close(): Promise<void>;
|
||||
public close(callback: (err: any) => void): void;
|
||||
|
||||
Reference in New Issue
Block a user