Skip to content

Commit aebb232

Browse files
authored
fix(types): add missing keepAlive params (#1918)
1 parent e155c6d commit aebb232

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/types/connector.test-d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ expectAssignable<Client>(new Client('', {
2525
expectAssignable<buildConnector.BuildOptions>({
2626
checkServerIdentity: () => undefined, // Test if ConnectionOptions is assignable
2727
localPort: 1234, // Test if TcpNetConnectOpts is assignable
28+
keepAlive: true,
29+
keepAliveInitialDelay: 12345,
2830
});
2931

3032
expectAssignable<buildConnector.Options>({

types/connector.d.ts

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ declare namespace buildConnector {
1010
socketPath?: string | null;
1111
timeout?: number | null;
1212
port?: number;
13+
keepAlive?: boolean | null;
14+
keepAliveInitialDelay?: number | null;
1315
}
1416

1517
export interface Options {

0 commit comments

Comments
 (0)