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

Method clone

packages/graph/src/Steps.ts:2866–2872  ·  view source on GitHub ↗
(partial?: Partial<MapElementsStepConfig<TInput>>)

Source from the content-addressed store, hash-verified

2864 }
2865
2866 public override clone(partial?: Partial<MapElementsStepConfig<TInput>>) {
2867 const { config } = this;
2868 return new MapElementsStep({
2869 mapper: partial?.mapper ?? config.mapper,
2870 stepLabels: partial?.stepLabels ?? (config.stepLabels ? [...config.stepLabels] : undefined),
2871 });
2872 }
2873
2874 public override toJSON(): [string, MapElementsStepConfig<TInput>, unknown?] {
2875 throw new Error("Cannot convert MapElementsStep to JSON.");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected