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

Function failsUndefined

ark/type/standalone/combinators.ts:668–674  ·  view source on GitHub ↗
(node: BaseRoot)

Source from the content-addressed store, hash-verified

666
667// whether a node's checker fails undefined, calling nothing to find out
668const failsUndefined = (node: BaseRoot): boolean =>
669 node.is("domain") || node.is("proto") ? true
670 : node.is("unit") ? node.unit !== undefined
671 : node.is("intersection") ? !!node.basis && failsUndefined(node.basis)
672 : node.is("union") ? node.branches.every(failsUndefined)
673 : node.is("morph") ? !!node.head && failsUndefined(node.head)
674 : false
675
676const writeAccess = (key: string): string => {
677 const written = writeKey(key)

Callers 1

writeSitedAllowsFunction · 0.85

Calls 1

isMethod · 0.80

Tested by

no test coverage detected