( parentFlags: BatchFlags | Record<string, unknown> | undefined, stepFlags: DaemonBatchStep['flags'] | Record<string, unknown> | undefined, )
| 190 | } |
| 191 | |
| 192 | function buildBatchStepFlags( |
| 193 | parentFlags: BatchFlags | Record<string, unknown> | undefined, |
| 194 | stepFlags: DaemonBatchStep['flags'] | Record<string, unknown> | undefined, |
| 195 | ): BatchFlags { |
| 196 | const { |
| 197 | batchSteps: _batchSteps, |
| 198 | batchOnError: _batchOnError, |
| 199 | batchMaxSteps: _batchMaxSteps, |
| 200 | ...merged |
| 201 | } = stepFlags ?? {}; |
| 202 | return mergeParentFlags(readBatchFlags(parentFlags), merged as BatchFlags); |
| 203 | } |
| 204 | |
| 205 | export function mergeParentFlags<TFlags extends Record<string, unknown>>( |
| 206 | parentFlags: BatchFlags | Record<string, unknown> | undefined, |
no test coverage detected