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

Method clone

packages/graph/src/Steps.ts:5709–5719  ·  view source on GitHub ↗
(partial?: Partial<ForeachStepConfig>)

Source from the content-addressed store, hash-verified

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/**

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected