Skip to content

Commit

Permalink
Add 'release' event type to pg Pool types
Browse files Browse the repository at this point in the history
Added in brianc/node-postgres#2845 and released as part of version 8.10.0.
  • Loading branch information
nihonjinrxs authored May 2, 2023
1 parent 7ad96b3 commit 2791804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/pg/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ export class Pool extends events.EventEmitter {
): void;
// tslint:enable:no-unnecessary-generics

on(event: 'error', listener: (err: Error, client: PoolClient) => void): this;
on(event: 'release' | 'error', listener: (err: Error, client: PoolClient) => void): this;
on(event: 'connect' | 'acquire' | 'remove', listener: (client: PoolClient) => void): this;
}

Expand Down

0 comments on commit 2791804

Please sign in to comment.