From 6ace7d41ea82a4a69eae7f29865e924de118a982 Mon Sep 17 00:00:00 2001 From: Vitaly Tomilov Date: Thu, 24 Nov 2022 09:55:26 +0000 Subject: [PATCH] update pg-subset declarations --- package.json | 2 +- typescript/pg-subset.d.ts | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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