You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-10 11:43:01 +03:00
16 lines
381 B
TypeScript
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;
|