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

Function isArkError

ark/schema/shared/errors.ts:930–931  ·  view source on GitHub ↗
(issue: ArkIssue)

Source from the content-addressed store, hash-verified

928
929/** an ArkError, not an issue errors "none" writes once read */
930export const isArkError = (issue: ArkIssue): issue is ArkError =>
931 ErrorSource.stamps(issue)
932
933const configOf = (error: ArkError): ResolvedConfig => {
934 const source = ErrorSource.of(error)

Callers 5

issuesMethod · 0.90
asTemplatedFunction · 0.85
asLabeledFunction · 0.85
isCustomErrorFunction · 0.85
errors.tsFile · 0.85

Calls 1

stampsMethod · 0.80

Tested by

no test coverage detected