Type Challenges Judge
Problems
Progress
Ranking
Union to Intersection
Implement the advanced util type UnionToIntersection<U>
UnionToIntersection<U>
For example
type I = Union2Intersection<'foo' | 42 | true> // expected to be 'foo' & 42 & true