(partial?: Partial<ForeachStepConfig>)
| 5707 | } |
| 5708 | |
| 5709 | public override clone(partial?: Partial<ForeachStepConfig>) { |
| 5710 | const { config, steps } = this; |
| 5711 | return new ForeachStep( |
| 5712 | { |
| 5713 | variable: partial?.variable ?? config.variable, |
| 5714 | listExpression: partial?.listExpression ?? config.listExpression, |
| 5715 | stepLabels: partial?.stepLabels ?? (config.stepLabels ? [...config.stepLabels] : undefined), |
| 5716 | }, |
| 5717 | steps.map((step) => step.clone()), |
| 5718 | ); |
| 5719 | } |
| 5720 | } |
| 5721 | |
| 5722 | /** |