[pg] Add connectionTimeoutMillis and keepAliveInitialDelayMillis options to ConnectionConfig (#37635)

This commit is contained in:
ikokostya
2019-08-16 11:51:23 -07:00
committed by Pranav Senthilnathan
parent bafd802370
commit 89e4834fc3
+3 -1
View File
@@ -1,4 +1,4 @@
// Type definitions for pg 7.4
// Type definitions for pg 7.11
// Project: http://github.com/brianc/node-postgres
// Definitions by: Phips Peter <https://github.com/pspeter3>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -19,6 +19,8 @@ export interface ConnectionConfig {
keepAlive?: boolean;
stream?: stream.Duplex;
statement_timeout?: false | number;
connectionTimeoutMillis?: number;
keepAliveInitialDelayMillis?: number;
}
export interface Defaults extends ConnectionConfig {