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

Method of

ark/schema/shared/errors.ts:920–922  ·  view source on GitHub ↗
(error: ArkError)

Source from the content-addressed store, hash-verified

918
919 // a copy holds no source, so reading its config or input throws
920 static of(error: ArkError): ResolvedConfig | Supplied {
921 return #source in error ? error.#source : throwError(copiedErrorMessage)
922 }
923
924 static stamps(issue: ArkIssue): boolean {
925 return #source in issue

Callers 3

configOfFunction · 0.45
inputOfFunction · 0.45
isCustomFunction · 0.45

Calls 1

throwErrorFunction · 0.90

Tested by

no test coverage detected