(command: Command, resp: RespVersions)
| 106 | } |
| 107 | |
| 108 | export function getTransformReply(command: Command, resp: RespVersions): TransformReply | undefined { |
| 109 | switch (typeof command.transformReply) { |
| 110 | case 'function': |
| 111 | return command.transformReply; |
| 112 | |
| 113 | case 'object': |
| 114 | return command.transformReply[resp]; |
| 115 | } |
| 116 | } |
| 117 | |
| 118 | export function functionArgumentsPrefix(name: string, fn: RedisFunction) { |
| 119 | const prefix: Array<RedisArgument> = [ |
no outgoing calls
no test coverage detected