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

Function endOf

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

Source from the content-addressed store, hash-verified

694
695// a bound that includes its rule
696const endOf = (node: BaseNode) =>
697 (node.is("min") || node.is("after")) && !node.exclusive ?
698 endsOf(+node.rule, undefined)
699 : (node.is("max") || node.is("before")) && !node.exclusive ?
700 endsOf(undefined, +node.rule)
701 : undefined
702
703// asked of what a node is made of and pipes to: its references are a union's
704// cases too, which it has once it's discriminated, when it's first used

Callers 1

nodeHoldsFunction · 0.85

Calls 2

endsOfFunction · 0.85
isMethod · 0.80

Tested by

no test coverage detected