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

Method clone

packages/graph/src/Steps.ts:2906–2912  ·  view source on GitHub ↗
(partial?: Partial<FilterPredicateStepConfig<TInput>>)

Source from the content-addressed store, hash-verified

2904 }
2905
2906 public override clone(partial?: Partial<FilterPredicateStepConfig<TInput>>) {
2907 const { config } = this;
2908 return new FilterPredicateStep({
2909 predicate: partial?.predicate ?? config.predicate,
2910 stepLabels: partial?.stepLabels ?? (config.stepLabels ? [...config.stepLabels] : undefined),
2911 });
2912 }
2913
2914 public override toJSON(): [string, FilterPredicateStepConfig<TInput>, unknown?] {
2915 throw new Error("Cannot convert FilterPredicateStep to JSON.");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected