end() method with callback (#13705)

added callback into end() method
This commit is contained in:
scippio
2017-01-19 19:05:38 +01:00
committed by Mohamed Hegazy
parent aee5331d05
commit 205f2ffa69

6
pg/index.d.ts vendored
View File

@@ -9,7 +9,7 @@
import events = require("events");
import stream = require("stream");
import pgTypes = require("pg-types");
import pgTypes = require("pg-types");
export declare function connect(connection: string, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void;
export declare function connect(config: ClientConfig, callback: (err: Error, client: Client, done: (err?: any) => void) => void): void;
@@ -92,8 +92,8 @@ export declare class Client extends events.EventEmitter {
constructor(connection: string);
constructor(config: ClientConfig);
connect(callback?: (err:Error) => void): void;
end(): void;
connect(callback?: (err:Error) => void): void;
end(callback?: (err: Error) => void): void;
release(): void;
query(queryText: string): Promise<QueryResult>;