( step: unknown, stepNumber: number, makeError: BatchStepErrorFactory = batchInvalidArgsError, )
| 27 | } |
| 28 | |
| 29 | export function readBatchStepRecord( |
| 30 | step: unknown, |
| 31 | stepNumber: number, |
| 32 | makeError: BatchStepErrorFactory = batchInvalidArgsError, |
| 33 | ): Record<string, unknown> { |
| 34 | if (!isRecord(step)) { |
| 35 | throw makeError(`Invalid batch step ${stepNumber}.`); |
| 36 | } |
| 37 | return step; |
| 38 | } |
| 39 | |
| 40 | export function readBatchStepInputObject( |
| 41 | record: Record<string, unknown>, |
no test coverage detected
searching dependent graphs…