Installation
npm install --save @types/pg-pool
Summary
This package contains type definitions for pg-pool (https://github.com/brianc/node-pg-pool).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/pg-pool.
import * as pg from "pg";
declare class Pool<T extends pg.Client> extends pg.Pool {
readonly Client: Pool.ClientLikeCtr<T>;
constructor(config?: Pool.Config<T>, client?: Pool.ClientLikeCtr<T>);
connect(): Promise<T & pg.PoolClient>;
connect(callback: (err?: Error, client?: T & pg.PoolClient, done?: (release?: any) => void) => void): void;
on<K extends "error" | "release" | "connect" | "acquire" | "remove">(
event: K,
listener: K extends "error" | "release" ? (err: Error, client: T & pg.PoolClient) => void
: (client: T & pg.PoolClient) => void,
): this;
}
declare namespace Pool {
type ClientLikeCtr<T extends pg.Client> = new(config?: string | pg.ClientConfig) => T;
interface Config<T extends pg.Client> extends pg.PoolConfig {
Client?: ClientLikeCtr<T> | undefined;
}
}
export = Pool;
Additional Details
- Last updated: Wed, 10 Dec 2025 20:02:11 GMT
- Dependencies: @types/pg
Credits
These definitions were written by Leo Liang, and Nikita Tokarchuk.
Current Tags
-
2.0.7
...
latest
(4 months ago)
-
2.0.0
...
ts2.0
(7 years ago)
-
2.0.0
...
ts2.1
(7 years ago)
-
2.0.0
...
ts2.2
(7 years ago)
-
2.0.1
...
ts2.3
(7 years ago)
-
2.0.1
...
ts2.4
(7 years ago)
-
2.0.1
...
ts2.5
(7 years ago)
-
2.0.1
...
ts2.6
(7 years ago)
-
2.0.1
...
ts2.7
(7 years ago)
-
2.0.2
...
ts2.8
(6 years ago)
-
2.0.2
...
ts2.9
(6 years ago)
-
2.0.2
...
ts3.0
(6 years ago)
-
2.0.2
...
ts3.1
(6 years ago)
-
2.0.2
...
ts3.2
(6 years ago)
-
2.0.2
...
ts3.3
(6 years ago)
-
2.0.2
...
ts3.4
(6 years ago)
-
2.0.2
...
ts3.5
(6 years ago)
-
2.0.3
...
ts3.6
(5 years ago)
-
2.0.3
...
ts3.7
(5 years ago)
-
2.0.3
...
ts3.8
(5 years ago)
-
2.0.3
...
ts3.9
(5 years ago)
-
2.0.3
...
ts4.0
(5 years ago)
-
2.0.3
...
ts4.1
(5 years ago)
-
2.0.3
...
ts4.2
(5 years ago)
-
2.0.3
...
ts4.3
(5 years ago)
-
2.0.3
...
ts4.4
(5 years ago)
-
2.0.6
...
ts4.5
(2 years ago)
-
2.0.6
...
ts4.6
(2 years ago)
-
2.0.6
...
ts4.7
(2 years ago)
-
2.0.6
...
ts4.8
(2 years ago)
-
2.0.6
...
ts4.9
(2 years ago)
-
2.0.6
...
ts5.0
(2 years ago)
-
2.0.6
...
ts5.1
(2 years ago)
-
2.0.7
...
ts5.2
(4 months ago)
-
2.0.7
...
ts5.3
(4 months ago)
-
2.0.7
...
ts5.4
(4 months ago)
-
2.0.7
...
ts5.5
(4 months ago)
-
2.0.7
...
ts5.6
(4 months ago)
-
2.0.7
...
ts5.7
(4 months ago)
-
2.0.7
...
ts5.8
(4 months ago)
-
2.0.7
...
ts5.9
(4 months ago)
-
2.0.7
...
ts6.0
(4 months ago)
11 Versions