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

Function isNarrow

ark/type/deferred.ts:674–675  ·  view source on GitHub ↗
(node: BaseNode)

Source from the content-addressed store, hash-verified

672
673// one a keyword holds is arktype's own, which nothing can tell was called
674const isNarrow = (node: BaseNode) =>
675 node.is("predicate") && node.meta.keyword === undefined
676
677// a narrow of a morph is of its output, so a unit that allows is one it checks
678const outputsUnit = (branch: BaseRoot) => {

Callers 1

nodeHoldsFunction · 0.85

Calls 1

isMethod · 0.80

Tested by

no test coverage detected