mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-02 12:42:55 +00:00
Connection.connect() Promise returns a Connection instance.
This commit is contained in:
parent
9db910d965
commit
5558749dec
2
mssql/index.d.ts
vendored
2
mssql/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user