MCPcopy Create free account
hub / github.com/arktypeio/arktype / pipeApplied

Function pipeApplied

ark/schema/shared/traversal.ts:650–654  ·  view source on GitHub ↗
(ctx, node, data)

Source from the content-addressed store, hash-verified

648
649// a node reading no pipe state is applied as is
650export const pipeApplied: TraversePipe = (ctx, node, data) => {
651 if (node.allows(data)) return data
652 node.tApply(data, ctx)
653 return errorsOf(ctx)
654}
655
656export const pipeTransformed: TraversePipe = (ctx, node, data) =>
657 allowsPiped(ctx, node, data) ?

Callers

nothing calls this directly

Calls 3

allowsMethod · 0.80
errorsOfFunction · 0.70
tApplyMethod · 0.45

Tested by

no test coverage detected