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

Function everyEntryAtUndeclaredKey

ark/sets/roots/union.ts:2792–2798  ·  view source on GitHub ↗
(
	branch: BaseRoot,
	disjoint: Disjoint,
	check: UndeclaredKeyCheck
)

Source from the content-addressed store, hash-verified

2790}
2791
2792const everyEntryAtUndeclaredKey = (
2793 branch: BaseRoot,
2794 disjoint: Disjoint,
2795 check: UndeclaredKeyCheck
2796): boolean =>
2797 disjoint.length > 0 &&
2798 disjoint.every(entry => entryAtUndeclaredKey(branch, entry, 0, check))
2799
2800// follows an entry's path through the props a node declares to the first key it
2801// doesn't, where check decides

Callers 2

disjointLeavesKeyOverlapFunction · 0.85

Calls 1

entryAtUndeclaredKeyFunction · 0.85

Tested by

no test coverage detected