You've already forked node-redis
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user