@arcmantle/library
Preparing search index...
types/record.types
ObjectTypesToUnion
Type Alias ObjectTypesToUnion<T>
ObjectTypesToUnion
:
T
extends
Record
<
keyof
any
,
never
>
?
never
:
T
extends
{
[
Key
in
keyof
T
]
:
infer
Type
}
?
Type
:
never
Takes all the types of the values in an object and returns it as a union type.
Type Parameters
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@arcmantle/library
Loading...
Takes all the types of the values in an object and returns it as a union type.