From 52f0fb5b5351c088e7515e3d24526bab21e71cc3 Mon Sep 17 00:00:00 2001 From: Leibale Eidelman Date: Mon, 22 Aug 2022 14:30:59 -0400 Subject: [PATCH] Update socket.ts --- packages/client/lib/client/socket.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/lib/client/socket.ts b/packages/client/lib/client/socket.ts index fdf758326b9..1bf012d7b28 100644 --- a/packages/client/lib/client/socket.ts +++ b/packages/client/lib/client/socket.ts @@ -5,13 +5,13 @@ import { RedisCommandArguments } from '../commands'; import { ConnectionTimeoutError, ClientClosedError, SocketClosedUnexpectedlyError, ReconnectStrategyError } from '../errors'; import { promiseTimeout } from '../utils'; -type ReconnectStrategy = (retries: number) => number | Error; +type ReconnectStrategy = ; export interface RedisSocketCommonOptions { connectTimeout?: number; noDelay?: boolean; keepAlive?: number | false; - reconnectStrategy?: ReconnectStrategy; + reconnectStrategy?(retries: number): number | Error; } type RedisNetSocketOptions = Partial & {