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

Function fails

ark/aot/shadow.ts:886–889  ·  view source on GitHub ↗
(outcome: Outcome)

Source from the content-addressed store, hash-verified

884}
885
886const fails = (outcome: Outcome) =>
887 "thrown" in outcome ?
888 thrownIssuesOf(outcome.thrown) !== undefined
889 : isErrors(outcome.value)
890
891// the issues errors "all" finds, any of which errors "first" can return
892const allIssuesOf = (original: BaseRoot, data: unknown): KeptIssue[] =>

Callers 3

domainsFunction · 0.70
validateBothFunction · 0.70
checkers.tsFile · 0.50

Calls 2

thrownIssuesOfFunction · 0.90
isErrorsFunction · 0.70

Tested by

no test coverage detected