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

Method clone

packages/graph/src/Steps.ts:6596–6604  ·  view source on GitHub ↗
(partial?: Partial<MergeStepConfig>)

Source from the content-addressed store, hash-verified

6594 }
6595
6596 public override clone(partial?: Partial<MergeStepConfig>) {
6597 return new MergeStep({
6598 pattern: partial?.pattern ?? { ...this.config.pattern },
6599 onCreate: partial?.onCreate ?? (this.config.onCreate ? [...this.config.onCreate] : undefined),
6600 onMatch: partial?.onMatch ?? (this.config.onMatch ? [...this.config.onMatch] : undefined),
6601 stepLabels:
6602 partial?.stepLabels ?? (this.config.stepLabels ? [...this.config.stepLabels] : undefined),
6603 });
6604 }
6605}
6606
6607// WITH Step types

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected