You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
buffers, buffers everywhere...
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { RedisCommandArguments } from '.';
|
||||
import { RedisCommandArgument, RedisCommandArguments } from '.';
|
||||
import { transformArguments as transformXAutoClaimArguments } from './XAUTOCLAIM';
|
||||
|
||||
export { FIRST_KEY_INDEX } from './XAUTOCLAIM';
|
||||
@@ -10,12 +10,14 @@ export function transformArguments(...args: Parameters<typeof transformXAutoClai
|
||||
];
|
||||
}
|
||||
|
||||
type XAutoClaimJustIdRawReply = [RedisCommandArgument, Array<RedisCommandArgument>];
|
||||
|
||||
interface XAutoClaimJustIdReply {
|
||||
nextId: string;
|
||||
messages: Array<string>;
|
||||
nextId: RedisCommandArgument;
|
||||
messages: Array<RedisCommandArgument>;
|
||||
}
|
||||
|
||||
export function transformReply(reply: [string, Array<string>]): XAutoClaimJustIdReply {
|
||||
export function transformReply(reply: XAutoClaimJustIdRawReply): XAutoClaimJustIdReply {
|
||||
return {
|
||||
nextId: reply[0],
|
||||
messages: reply[1]
|
||||
|
Reference in New Issue
Block a user