(value: unknown, stepNumber: number)
| 112 | } |
| 113 | |
| 114 | function readLegacyPositionals(value: unknown, stepNumber: number): string[] | undefined { |
| 115 | if (value === undefined) return undefined; |
| 116 | if (!Array.isArray(value) || value.some((item) => typeof item !== 'string')) { |
| 117 | throw new AppError( |
| 118 | 'INVALID_ARGS', |
| 119 | `Batch step ${stepNumber} positionals must contain only strings.`, |
| 120 | ); |
| 121 | } |
| 122 | return value; |
| 123 | } |
| 124 | |
| 125 | function readLegacyFlags(value: unknown, stepNumber: number): Record<string, unknown> | undefined { |
| 126 | if (value === undefined) return undefined; |
no outgoing calls
no test coverage detected
searching dependent graphs…