Extract all value types from a union of object types.
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 Copy
type U = { a: string } | { b: number };type V = UnionValues< U >; // string | number
Extract all value types from a union of object types.