Preparing search index...
The search index is not available
utilium
utilium
UnionToTuple
Type Alias UnionToTuple<T, L, N>
Union
To
Tuple
<
T
,
L
,
N
>
:
true
extends
N
?
[
]
:
Push
<
UnionToTuple
<
Exclude
<
T
,
L
>
>
,
L
>
Converts a union to a tuple
Type Parameters
T
L
=
LastOfUnion
<
T
>
N
=
[
T
]
extends
[
never
]
?
true
:
false
See
https://stackoverflow.com/a/55128956/17637456
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
utilium
Loading...
Converts a union to a tuple