Type Alias UnionToIntersection<U>

UnionToIntersection: (U extends any ? (x: U) => any : never) extends (
    x: infer I,
) => any
    ? I
    : never

Union to intersection inference.

Type Parameters

  • U