From 87b77e3e5f763b1b51c0dbfa9e7bb026a0ee57af Mon Sep 17 00:00:00 2001 From: Nikolay Karadzhov Date: Wed, 7 May 2025 13:47:23 +0300 Subject: [PATCH] fix(client): add type annotations (#2949) Fix type parameter for transformTuplesReply in CONFIG_GET and HGETALL commands fixes #2933 --- packages/client/lib/commands/CONFIG_GET.ts | 2 +- packages/client/lib/commands/HGETALL.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/lib/commands/CONFIG_GET.ts b/packages/client/lib/commands/CONFIG_GET.ts index 54fa997bf6..e8339c4d9a 100644 --- a/packages/client/lib/commands/CONFIG_GET.ts +++ b/packages/client/lib/commands/CONFIG_GET.ts @@ -10,7 +10,7 @@ export default { parser.pushVariadic(parameters); }, transformReply: { - 2: transformTuplesReply, + 2: transformTuplesReply, 3: undefined as unknown as () => MapReply } } as const satisfies Command; diff --git a/packages/client/lib/commands/HGETALL.ts b/packages/client/lib/commands/HGETALL.ts index a2c3011c4c..8d53669cdd 100644 --- a/packages/client/lib/commands/HGETALL.ts +++ b/packages/client/lib/commands/HGETALL.ts @@ -11,7 +11,7 @@ export default { }, TRANSFORM_LEGACY_REPLY: true, transformReply: { - 2: transformTuplesReply, + 2: transformTuplesReply, 3: undefined as unknown as () => MapReply } } as const satisfies Command;