devtypes - v2.0.0
    Preparing search index...

    Type Alias UnionValues<U>

    UnionValues: U extends any ? U[keyof U] : never

    Extract all value types from a union of object types.

    Type Parameters

    • U

      Union of object types

    Produces a union of all property value types across all members.

    type U = { a: string } | { b: number };
    type V = UnionValues< U >; // string | number