diff --git a/package.json b/package.json index 8c6d047b..c9e844b4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pg-promise", - "version": "10.15.2", + "version": "10.15.3", "description": "PostgreSQL interface for Node.js", "main": "lib/index.js", "typings": "typescript/pg-promise.d.ts", diff --git a/typescript/pg-subset.d.ts b/typescript/pg-subset.d.ts index 8a4493a4..0197eb80 100644 --- a/typescript/pg-subset.d.ts +++ b/typescript/pg-subset.d.ts @@ -261,6 +261,9 @@ declare namespace pg { // https://github.com/brianc/node-postgres/blob/master/packages/pg-pool/index.js#L61 // NOTE: We declare only what can be used from pg-promise interface IPool extends EventEmitter { + + connect(): Promise; + end(): Promise; end(cb: (err: Error) => any): any; @@ -298,6 +301,8 @@ declare namespace pg { query(config: any): Promise> + release(); + connectionParameters: IConnectionParameters database: string user: string