Umi — API References - v1.3.0
Preparing search index...
umi-serializers
DataEnumToSerializerTuple
Type Alias DataEnumToSerializerTuple<T, U>
DataEnumToSerializerTuple
:
(
T
extends
any
?
[
T
[
"__kind"
]
,
keyof
Omit
<
T
,
"__kind"
>
extends
never
?
Serializer
<
Omit
<
T
,
"__kind"
>
,
Omit
<
U
,
"__kind"
>
>
|
Serializer
<
void
>
:
Serializer
<
Omit
<
T
,
"__kind"
>
,
Omit
<
U
,
"__kind"
>
>
,
]
:
never
)
[]
Get the name and serializer of each variant in a data enum.
Type Parameters
T
extends
DataEnum
U
extends
T
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Umi — API References - v1.3.0
Loading...
Get the name and serializer of each variant in a data enum.