1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
This commit is contained in:
Leibale
2023-06-22 18:18:23 -04:00
parent b46f08228c
commit 2b318d4100
27 changed files with 595 additions and 578 deletions

View File

@@ -1,5 +1,5 @@
import { RedisArgument, ArrayReply, NullReply, BlobStringReply, DoubleReply, Command } from '../RESP/types';
import { pushVariadicArguments, RedisVariadicArgument } from './generic-transformers';
import { pushVariadicArguments, RedisVariadicArgument, transformNullableDoubleReply } from './generic-transformers';
export default {
FIRST_KEY_INDEX: 1,
@@ -12,7 +12,7 @@ export default {
},
transformReply: {
2: (reply: ArrayReply<NullReply | BlobStringReply>) => {
return reply.map(score => score === null ? null : Number(score));
return reply.map(transformNullableDoubleReply[2]);
},
3: undefined as unknown as () => ArrayReply<NullReply | DoubleReply>
}