diff --git a/test/types/connector.test-d.ts b/test/types/connector.test-d.ts index 1437d6f333d..bbf07e1d396 100644 --- a/test/types/connector.test-d.ts +++ b/test/types/connector.test-d.ts @@ -25,6 +25,8 @@ expectAssignable(new Client('', { expectAssignable({ checkServerIdentity: () => undefined, // Test if ConnectionOptions is assignable localPort: 1234, // Test if TcpNetConnectOpts is assignable + keepAlive: true, + keepAliveInitialDelay: 12345, }); expectAssignable({ diff --git a/types/connector.d.ts b/types/connector.d.ts index 2b28771af2a..d53d7952b5c 100644 --- a/types/connector.d.ts +++ b/types/connector.d.ts @@ -10,6 +10,8 @@ declare namespace buildConnector { socketPath?: string | null; timeout?: number | null; port?: number; + keepAlive?: boolean | null; + keepAliveInitialDelay?: number | null; } export interface Options {