Compute chained intersections across multiple types.
Tuple of types
1.1.0
Produces all pairwise and transitive intersections across a tuple of types. Useful for detecting overlapping keys or values.
Will return never if only one type is given.
Can be slow for large tuples due to combinatorial explosion.
type KeysA = 'a' | 'aa'type KeysB = 'b' | 'bb'type KeysX = 'x' | 'bb'type Intersection1 = ChainedIntersection< [ KeysA, KeysB, KeysX ] > // "bb"type Intersection2 = ChainedIntersection< [ true, false, 1, true ] > // true Copy
type KeysA = 'a' | 'aa'type KeysB = 'b' | 'bb'type KeysX = 'x' | 'bb'type Intersection1 = ChainedIntersection< [ KeysA, KeysB, KeysX ] > // "bb"type Intersection2 = ChainedIntersection< [ true, false, 1, true ] > // true
Compute chained intersections across multiple types.