1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-11 22:42:42 +03:00
Files
node-redis/lib/commands/ACL_DELUSER.ts

16 lines
381 B
TypeScript

import { transformReplyNumber } from './generic-transformers';
export function transformArguments(username: string | Array<string>): Array<string> {
const args = ['ACL', 'DELUSER'];
if (typeof username === 'string') {
args.push(username);
} else {
args.push(...username);
}
return args;
}
export const transformReply = transformReplyNumber;