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

Function applyNodeErrors

ark/type/runtime.ts:1040–1046  ·  view source on GitHub ↗
(
	node: { tApply: CompactApply },
	data: unknown,
	config: unknown,
	onFail: ArkErrors.Handler | null,
	Ctx: new (data: unknown, config: unknown) => ArkErrors | InternalTraversal
)

Source from the content-addressed store, hash-verified

1038}
1039
1040export const applyNodeErrors = (
1041 node: { tApply: CompactApply },
1042 data: unknown,
1043 config: unknown,
1044 onFail: ArkErrors.Handler | null,
1045 Ctx: new (data: unknown, config: unknown) => ArkErrors | InternalTraversal
1046): unknown => applyErrors(node.tApply, data, config, onFail, Ctx)
1047
1048// a root array's Apply from i, the first element `allows` rejected
1049const elementsFrom =

Callers

nothing calls this directly

Calls 1

applyErrorsFunction · 0.85

Tested by

no test coverage detected