Skip to content

Commit

Permalink
fix(types): add missing keepAlive params (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkeLLLa authored Feb 13, 2023
1 parent e155c6d commit aebb232
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/types/connector.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ expectAssignable<Client>(new Client('', {
expectAssignable<buildConnector.BuildOptions>({
checkServerIdentity: () => undefined, // Test if ConnectionOptions is assignable
localPort: 1234, // Test if TcpNetConnectOpts is assignable
keepAlive: true,
keepAliveInitialDelay: 12345,
});

expectAssignable<buildConnector.Options>({
Expand Down
2 changes: 2 additions & 0 deletions types/connector.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ declare namespace buildConnector {
socketPath?: string | null;
timeout?: number | null;
port?: number;
keepAlive?: boolean | null;
keepAliveInitialDelay?: number | null;
}

export interface Options {
Expand Down

0 comments on commit aebb232

Please sign in to comment.