(steps: unknown, nestedCommands: readonly string[])
| 118 | } |
| 119 | |
| 120 | function readBatchSteps(steps: unknown, nestedCommands: readonly string[]): BatchCommandStep[] { |
| 121 | if (!Array.isArray(steps)) { |
| 122 | throw new Error('Expected steps to be an array.'); |
| 123 | } |
| 124 | return steps.map((step, index) => readBatchStep(step, index + 1, nestedCommands)); |
| 125 | } |
| 126 | |
| 127 | function readBatchStep( |
| 128 | step: unknown, |
no test coverage detected
searching dependent graphs…