Skip to content

Commit db05836

Browse files
authored
Update TypeScript types with v3 changes (porsager#293)
1 parent 19349b1 commit db05836

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

types/index.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ interface BaseOptions<T extends JSToPostgresTypeMap> {
6767
/** (key; value) when a server param change */
6868
onparameter: (key: string, value: any) => void;
6969
/** Is called with (connection; query; parameters) */
70-
debug: boolean | ((connection: number, query: string, parameters: any[]) => void);
70+
debug: boolean | ((connection: number, query: string, parameters: any[], paramTypes: any[]) => void);
7171
/** Transform hooks */
7272
transform: {
7373
/** Transforms incoming and outgoing column names */
@@ -109,6 +109,10 @@ interface BaseOptions<T extends JSToPostgresTypeMap> {
109109
* @default 'alltables'
110110
*/
111111
publications: string
112+
onclose: (connId: number) => void;
113+
backoff: boolean | ((attemptNum:number) => number);
114+
max_lifetime: number | null;
115+
keep_alive: number | null;
112116
}
113117

114118
type PostgresTypeList<T> = {

0 commit comments

Comments
 (0)