Skip to content

Commit

Permalink
update tls type to be boolean instead of "true" (RedisTlsSocketOption…
Browse files Browse the repository at this point in the history
…s) (#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]>
  • Loading branch information
3 people authored Jan 31, 2022
1 parent 84aebcc commit 741aff0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/client/lib/client/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ export interface RedisSocketCommonOptions {
reconnectStrategy?(retries: number): number | Error;
}

export type RedisNetSocketOptions = Partial<net.SocketConnectOpts>;
type RedisNetSocketOptions = Partial<net.SocketConnectOpts> & {
tls?: false;
};

export interface RedisTlsSocketOptions extends RedisSocketCommonOptions, tls.ConnectionOptions {
export interface RedisTlsSocketOptions extends tls.ConnectionOptions {
tls: true;
}

Expand Down

0 comments on commit 741aff0

Please sign in to comment.