(command: Command, ...args: Array<any>)
| 516 | */ |
| 517 | // eslint-disable-next-line @typescript-eslint/no-explicit-any -- variadic command args of mixed types |
| 518 | export function parseArgs(command: Command, ...args: Array<any>): CommandArguments { |
| 519 | const parser = new BasicCommandParser(); |
| 520 | command.parseCommand!(parser, ...args); |
| 521 | |
| 522 | const redisArgs: CommandArguments = parser.redisArgs; |
| 523 | if (parser.preserve) { |
| 524 | redisArgs.preserve = parser.preserve; |
| 525 | } |
| 526 | return redisArgs; |
| 527 | } |
| 528 | |
| 529 | export type StreamMessageRawReply = TuplesReply<[ |
| 530 | id: BlobStringReply, |
no outgoing calls
no test coverage detected