Skip to content

Commit 741aff0

Browse files
MatanYeminiMatan Yeminileibale
authored
update tls type to be boolean instead of "true" (RedisTlsSocketOptions) (#1851)
* update tls type to be boolean instead of "true" * Update socket.ts * Update socket.ts * Update socket.ts Co-authored-by: Matan Yemini <[email protected]> Co-authored-by: Leibale Eidelman <[email protected]>
1 parent 84aebcc commit 741aff0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/client/lib/client/socket.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ export interface RedisSocketCommonOptions {
1313
reconnectStrategy?(retries: number): number | Error;
1414
}
1515

16-
export type RedisNetSocketOptions = Partial<net.SocketConnectOpts>;
16+
type RedisNetSocketOptions = Partial<net.SocketConnectOpts> & {
17+
tls?: false;
18+
};
1719

18-
export interface RedisTlsSocketOptions extends RedisSocketCommonOptions, tls.ConnectionOptions {
20+
export interface RedisTlsSocketOptions extends tls.ConnectionOptions {
1921
tls: true;
2022
}
2123

0 commit comments

Comments
 (0)