mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-03 08:40:12 +00:00
[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:
committed by
Mohamed Hegazy
parent
f05b9a7d6f
commit
eef993565c
2
types/pg/index.d.ts
vendored
2
types/pg/index.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user