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

Function transformPiped

ark/schema/shared/traversal.ts:690–702  ·  view source on GitHub ↗
(
	ctx: InternalTraversal,
	node: BaseNode,
	data: unknown,
	transformNode: typeof transform
)

Source from the content-addressed store, hash-verified

688}
689
690const transformPiped = (
691 ctx: InternalTraversal,
692 node: BaseNode,
693 data: unknown,
694 transformNode: typeof transform
695): unknown => {
696 const { recv, recvAt } = ctx
697 const errN = ctx.errN
698 const result = transformNode(ctx, node, data)
699 ctx.recv = recv
700 ctx.recvAt = recvAt
701 return ctx.errN > errN ? errorsOf(ctx) : result
702}
703
704const applyPiped = (
705 ctx: InternalTraversal,

Callers 2

pipeTransformedFunction · 0.85
pipeFunction · 0.85

Calls 1

errorsOfFunction · 0.70

Tested by

no test coverage detected