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

Function transform

ark/schema/shared/traversal.ts:604–611  ·  view source on GitHub ↗
(
	ctx: InternalTraversal,
	node: BaseNode,
	data: unknown
)

Source from the content-addressed store, hash-verified

602 : result
603
604export const transform = (
605 ctx: InternalTraversal,
606 node: BaseNode,
607 data: unknown
608): unknown =>
609 node.tfsById ?
610 transformResolution(ctx, node.id, data, node.tTransform!, node)
611 : transformAcyclic(ctx, node, data)
612
613const transformAcyclic = (
614 ctx: InternalTraversal,

Callers 9

tTransformMethod · 0.90
tTransformMethod · 0.90
tfKeptMethod · 0.90
tTransformMethod · 0.90
tfElemsMethod · 0.90
tfKeyMethod · 0.90
tTransformMethod · 0.90
tfSharedKeyMethod · 0.90
transformIfAllowedFunction · 0.70

Calls 2

transformResolutionFunction · 0.85
transformAcyclicFunction · 0.85

Tested by

no test coverage detected