1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-04 15:02:09 +03:00

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 <matan@engageli.com>
Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
This commit is contained in:
Matan Yemini
2022-01-31 11:33:11 +02:00
committed by GitHub
parent 84aebcca0f
commit 741aff0c30

View File

@@ -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;
}