mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
6
pg/index.d.ts
vendored
6
pg/index.d.ts
vendored
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user