You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
fix(commands): sPopCount return Array<string> (#3006)
Also, touch the tests for spop and spopcount to use the new parseCommand API fixes #3004
This commit is contained in:
committed by
GitHub
parent
c5b4f47975
commit
742d5713e8
@@ -1,5 +1,5 @@
|
||||
import { CommandParser } from '../client/parser';
|
||||
import { RedisArgument, BlobStringReply, NullReply, Command } from '../RESP/types';
|
||||
import { RedisArgument, Command, ArrayReply } from '../RESP/types';
|
||||
|
||||
export default {
|
||||
IS_READ_ONLY: false,
|
||||
@@ -16,5 +16,5 @@ export default {
|
||||
parser.pushKey(key);
|
||||
parser.push(count.toString());
|
||||
},
|
||||
transformReply: undefined as unknown as () => BlobStringReply | NullReply
|
||||
transformReply: undefined as unknown as () => ArrayReply<string>
|
||||
} as const satisfies Command;
|
||||
|
Reference in New Issue
Block a user