Skip to content

Commit 87b77e3

Browse files
authored
fix(client): add type annotations (#2949)
Fix type parameter for transformTuplesReply in CONFIG_GET and HGETALL commands fixes #2933
1 parent 52e5562 commit 87b77e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/client/lib/commands/CONFIG_GET.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
parser.pushVariadic(parameters);
1111
},
1212
transformReply: {
13-
2: transformTuplesReply,
13+
2: transformTuplesReply<BlobStringReply>,
1414
3: undefined as unknown as () => MapReply<BlobStringReply, BlobStringReply>
1515
}
1616
} as const satisfies Command;

packages/client/lib/commands/HGETALL.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
},
1212
TRANSFORM_LEGACY_REPLY: true,
1313
transformReply: {
14-
2: transformTuplesReply,
14+
2: transformTuplesReply<BlobStringReply>,
1515
3: undefined as unknown as () => MapReply<BlobStringReply, BlobStringReply>
1616
}
1717
} as const satisfies Command;

0 commit comments

Comments
 (0)