You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
convert "resp types" to interfaces to allow circular references
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { RedisArgument, ArrayReply, NullReply, BlobStringReply, DoubleReply, Command } from '../RESP/types';
|
||||
import { RedisArgument, ArrayReply, NullReply, BlobStringReply, DoubleReply, UnwrapReply, Command } from '../RESP/types';
|
||||
import { pushVariadicArguments, RedisVariadicArgument, transformNullableDoubleReply } from './generic-transformers';
|
||||
|
||||
export default {
|
||||
@@ -11,7 +11,7 @@ export default {
|
||||
return pushVariadicArguments(['ZMSCORE', key], member);
|
||||
},
|
||||
transformReply: {
|
||||
2: (reply: ArrayReply<NullReply | BlobStringReply>) => {
|
||||
2: (reply: UnwrapReply<ArrayReply<NullReply | BlobStringReply>>) => {
|
||||
return reply.map(transformNullableDoubleReply[2]);
|
||||
},
|
||||
3: undefined as unknown as () => ArrayReply<NullReply | DoubleReply>
|
||||
|
Reference in New Issue
Block a user