UnionToIntersection
Type Aliases
UnionToIntersection
Ƭ UnionToIntersection<U>: U extends U ? (u: U) => 0 : never extends (i: infer I) => 0 ? Extract<I, U> : never
Helper type to convert a union to an intersection.
Type parameters
| Name |
|---|
U |
Defined in
packages/isaacscript-common/src/types/UnionToIntersection.ts:2