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

Function checkWrittenIntersection

ark/type/parser/reduce/shared.ts:56–63  ·  view source on GitHub ↗
(
	result: BaseRoot,
	l: BaseRoot,
	r: BaseRoot
)

Source from the content-addressed store, hash-verified

54// an intersection a definition writes with a cyclic operand is decided once
55// definitions close, where an empty one throws as if written out
56export const checkWrittenIntersection = (
57 result: BaseRoot,
58 l: BaseRoot,
59 r: BaseRoot
60): void => {
61 if (inProgress.definitions && result.is("alias") && result.operator === "&")
62 queueUnchecked(() => void unaliased(l).rawAnd(unaliased(r)), result.id)
63}
64
65export type OpenLeftBound = { limit: LimitLiteral; comparator: MinComparator }
66

Callers 2

parseBranchTupleFunction · 0.90
pushRootBranchMethod · 0.90

Calls 3

queueUncheckedFunction · 0.90
unaliasedFunction · 0.85
isMethod · 0.80

Tested by

no test coverage detected