1- import type * as pg from "./index.d.ts" ;
2-
3- import TypeOverrides = require( "./lib/type-overrides" ) ;
4-
5- export type * from "./index.d.ts" ;
6-
7- export const defaults : typeof pg . defaults ;
8- export const Client : typeof pg . Client ;
9- export const Query : typeof pg . Query ;
10- export const Pool : typeof pg . Pool ;
11- export const Connection : typeof pg . Connection ;
12- export const types : typeof pg . types ;
13- export const DatabaseError : typeof pg . DatabaseError ;
14- export const escapeIdentifier : typeof pg . escapeIdentifier ;
15- export const escapeLiteral : typeof pg . escapeLiteral ;
16- export const Result : typeof pg . Result ;
17-
18- export { TypeOverrides } ;
1+ import * as pg from "./index.js" ;
192
203declare const PG : {
214 defaults : typeof pg . defaults ;
@@ -25,10 +8,46 @@ declare const PG: {
258 Connection : typeof pg . Connection ;
269 types : typeof pg . types ;
2710 DatabaseError : typeof pg . DatabaseError ;
28- TypeOverrides : typeof TypeOverrides ;
11+ TypeOverrides : typeof pg . TypeOverrides ;
2912 escapeIdentifier : typeof pg . escapeIdentifier ;
3013 escapeLiteral : typeof pg . escapeLiteral ;
3114 Result : typeof pg . Result ;
3215} ;
3316
17+ declare namespace PG {
18+ type QueryConfigValues < T > = pg . QueryConfigValues < T > ;
19+ type ClientConfig = pg . ClientConfig ;
20+ type ConnectionConfig = pg . ConnectionConfig ;
21+ type Defaults = pg . Defaults ;
22+ type PoolConfig = pg . PoolConfig ;
23+ type QueryConfig < I = any [ ] > = pg . QueryConfig < I > ;
24+ type CustomTypesConfig = pg . CustomTypesConfig ;
25+ type Submittable = pg . Submittable ;
26+ type QueryArrayConfig < I = any [ ] > = pg . QueryArrayConfig < I > ;
27+ type FieldDef = pg . FieldDef ;
28+ type QueryResultBase = pg . QueryResultBase ;
29+ type QueryResultRow = pg . QueryResultRow ;
30+ type QueryResult < R extends QueryResultRow = any > = pg . QueryResult < R > ;
31+ type QueryArrayResult < R extends any [ ] = any [ ] > = pg . QueryArrayResult < R > ;
32+ type Notification = pg . Notification ;
33+ type ResultBuilder < R extends QueryResultRow = any > = pg . ResultBuilder < R > ;
34+ type QueryParse = pg . QueryParse ;
35+ type BindConfig = pg . BindConfig ;
36+ type ExecuteConfig = pg . ExecuteConfig ;
37+ type MessageConfig = pg . MessageConfig ;
38+ type PoolOptions = pg . PoolOptions ;
39+ type PoolClient = pg . PoolClient ;
40+
41+ type ClientBase = pg . ClientBase ;
42+ type Client = pg . Client ;
43+ type Query = pg . Query ;
44+ type Events = pg . Events ;
45+ type Pool = pg . Pool ;
46+ type Connection = pg . Connection ;
47+ type DatabaseError = pg . DatabaseError ;
48+ type TypeOverrides = pg . TypeOverrides ;
49+ type Result = pg . Result ;
50+ }
51+
52+ export * from "./index.js" ;
3453export default PG ;
0 commit comments