Utility TypeScript @ 2.0.0-beta.6
    Preparing search index...

    Type Alias UnionToIntersection<U>Experimental

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

    Converts a union type to an intersection type. Use cautiously as results may not always be what you expect.

    Type Parameters

    • U extends {}

    PKG_VERSION