You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +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:
@@ -13,9 +13,11 @@ export interface RedisSocketCommonOptions {
|
|||||||
reconnectStrategy?(retries: number): number | Error;
|
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;
|
tls: true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user