MCPcopy Create free account
hub / github.com/codemix/graph / clone

Method clone

packages/graph/src/Steps.ts:4459–4468  ·  view source on GitHub ↗
(partial?: Partial<OptionalMatchStepConfig>)

Source from the content-addressed store, hash-verified

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
4471export interface SelectStepConfig extends StepConfig {

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected