[pg] Client.connect() returns void not a Client (#19918)

https://node-postgres.com/api/client#-code-client-connect-gt-promise-lt-void-gt-code-
This commit is contained in:
Tanner Doshier
2017-09-25 18:07:36 -05:00
committed by Mohamed Hegazy
parent f05b9a7d6f
commit eef993565c

2
types/pg/index.d.ts vendored
View File

@@ -95,7 +95,7 @@ export class Pool extends events.EventEmitter {
export class Client extends events.EventEmitter {
constructor(config: ClientConfig);
connect(): Promise<Client>;
connect(): Promise<void>;
connect(callback: (err: Error) => void): void;
end(): Promise<void>;