( step: Record<string, unknown> & BatchStep, stepNumber: number, )
| 61 | } |
| 62 | |
| 63 | function readStructuredBatchStep( |
| 64 | step: Record<string, unknown> & BatchStep, |
| 65 | stepNumber: number, |
| 66 | ): BatchStep { |
| 67 | const runtime = parseBatchStepRuntime(step.runtime, stepNumber); |
| 68 | const { runtime: _runtime, ...rest } = step; |
| 69 | return { |
| 70 | ...rest, |
| 71 | ...(runtime === undefined ? {} : { runtime }), |
| 72 | }; |
| 73 | } |
| 74 | |
| 75 | function readLegacyCliBatchStep(step: unknown, stepNumber: number): LegacyCliBatchStep { |
| 76 | if (!isRecord(step)) { |
no test coverage detected