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

Function determinate

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

Source from the content-addressed store, hash-verified

990}
991
992const determinate = (l: Facts, r: Facts) =>
993 !(l.domains & r.domains) ||
994 (!calls(l, r) && !calls(r, l) && ((l.pure && r.pure) || disjointByTag(l, r)))
995
996export const deferUnion = (
997 branches: unknown[],

Callers 1

deferUnionFunction · 0.85

Calls 2

disjointByTagFunction · 0.85
callsFunction · 0.70

Tested by

no test coverage detected