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

Function calls

ark/type/deferred.ts:981–990  ·  view source on GitHub ↗
(l: Facts, r: Facts)

Source from the content-addressed store, hash-verified

979// unit of another in its place: at any depth, unless both are literals whose
980// props say where
981const calls = (l: Facts, r: Facts) => {
982 if (l.narrowed && r.units) return true
983 // or on what its range and another's meeting allow alone
984 if ((l.narrowed || l.narrowedWithin) && meet(l, r)) return true
985 if (!l.narrowedWithin || !r.unitsWithin) return false
986 if (!l.held || !r.held) return true
987 for (const [name, bits] of l.held)
988 if (bits & holdsNarrow && r.held.get(name)! & holdsUnit) return true
989 return false
990}
991
992const determinate = (l: Facts, r: Facts) =>
993 !(l.domains & r.domains) ||

Callers 1

determinateFunction · 0.70

Calls 2

meetFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected