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

Function errorOfNodeContext

ark/schema/shared/errors.ts:830–836  ·  view source on GitHub ↗
(
	context: ArkErrorContextInput,
	path: PropertyKey[],
	data: unknown,
	config: ResolvedConfig
)

Source from the content-addressed store, hash-verified

828) => ArkError
829
830const errorOfNodeContext = (
831 context: ArkErrorContextInput,
832 path: PropertyKey[],
833 data: unknown,
834 config: ResolvedConfig
835): ArkError =>
836 errorBuiltBy(builderOf(context, config), context, path, data, config)
837
838// a context's error: built by its compiled builder, or spread where there's none
839const errorBuiltBy = (

Callers 2

nodeErrorMethod · 0.85
errorFromNodeAtFunction · 0.85

Calls 2

errorBuiltByFunction · 0.85
builderOfFunction · 0.85

Tested by

no test coverage detected