(partial?: Partial<OptionalMatchStepConfig>)
| 4457 | } |
| 4458 | |
| 4459 | public override clone(partial?: Partial<OptionalMatchStepConfig>) { |
| 4460 | const { config, steps } = this; |
| 4461 | return new OptionalMatchStep( |
| 4462 | { |
| 4463 | stepLabels: partial?.stepLabels ?? (config.stepLabels ? [...config.stepLabels] : undefined), |
| 4464 | variables: partial?.variables ?? [...config.variables], |
| 4465 | }, |
| 4466 | steps.map((step) => step.clone()), |
| 4467 | ); |
| 4468 | } |
| 4469 | } |
| 4470 | |
| 4471 | export interface SelectStepConfig extends StepConfig { |