You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
14 lines
421 B
TypeScript
14 lines
421 B
TypeScript
import { SimpleStringReply, Command } from '../RESP/types';
|
|
import { pushVariadicNumberArguments } from './generic-transformers';
|
|
|
|
export default {
|
|
IS_READ_ONLY: true,
|
|
transformArguments(slots: number | Array<number>) {
|
|
return pushVariadicNumberArguments(
|
|
['CLUSTER', 'DELSLOTS'],
|
|
slots
|
|
);
|
|
},
|
|
transformReply: undefined as unknown as () => SimpleStringReply<'OK'>
|
|
} as const satisfies Command;
|