1
0
mirror of https://github.com/redis/node-redis.git synced 2025-09-02 22:41:17 +03:00
Files
node-redis/lib/commands/ZPOPMAX_COUNT.ts
2021-06-18 16:51:30 -04:00

15 lines
479 B
TypeScript

import { deepEqual } from 'assert/strict';
import { transformReplySortedSetWithScores } from './generic-transformers';
import { transformArguments as transformZPopMaxArguments } from './ZPOPMAX';
export { FIRST_KEY_INDEX } from './ZPOPMAX';
export function transformArguments(key: string, count: number): Array<string> {
return [
...transformZPopMaxArguments(key),
count.toString()
];
}
export const transformReply = transformReplySortedSetWithScores;