Skip to content

Commit

Permalink
update pg-subset declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed Nov 24, 2022
1 parent b5b098f commit 6ace7d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 5 additions & 0 deletions typescript/pg-subset.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<IClient>;

end(): Promise<undefined>;

end(cb: (err: Error) => any): any;
Expand Down Expand Up @@ -298,6 +301,8 @@ declare namespace pg {

query<T>(config: any): Promise<IResult<T>>

release();

connectionParameters: IConnectionParameters
database: string
user: string
Expand Down

0 comments on commit 6ace7d4

Please sign in to comment.