import { RedisCommandArguments } from '.'; import { FunctionListItemReply, FunctionListRawItemReply, transformFunctionListItemReply } from './generic-transformers'; export function transformArguments(pattern?: string): RedisCommandArguments { const args = ['FUNCTION', 'LIST']; if (pattern) { args.push(pattern); } return args; } export function transformReply(reply: Array): Array { return reply.map(transformFunctionListItemReply); }