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

Function stampError

ark/schema/shared/errors.ts:943–950  ·  view source on GitHub ↗
(
	error: ArkError,
	config: ResolvedConfig,
	input?: ArkErrorContextInput
)

Source from the content-addressed store, hash-verified

941}
942
943const stampError = (
944 error: ArkError,
945 config: ResolvedConfig,
946 input?: ArkErrorContextInput
947): ArkError => {
948 new ErrorSource(error, input ? new Supplied(config, input) : config)
949 return error
950}
951
952export const suppliedText = (
953 error: ArkError,

Callers 5

errorOfIssueFunction · 0.85
errorFromUnionFunction · 0.85
errorOfContextFunction · 0.85
errorBuiltByFunction · 0.85
unwrittenErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected