NodeRedis/node-redis

View on GitHub
packages/client/lib/commands/ZINTER_WITHSCORES.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { Command } from '../RESP/types';
import { transformSortedSetReply } from './generic-transformers';
import ZINTER from './ZINTER';


export default {
  IS_READ_ONLY: ZINTER.IS_READ_ONLY,
  parseCommand(...args: Parameters<typeof ZINTER.parseCommand>) {
    ZINTER.parseCommand(...args);
    args[0].push('WITHSCORES');
  },
  transformReply: transformSortedSetReply
} as const satisfies Command;