Coda by Ian Macalinao
Preparing search index...
@macalinao/coda
enumTypeNode
Function enumTypeNode
enumTypeNode
<
const
TVariants
extends
EnumVariantTypeNode
[]
,
const
TSize
extends
NestedTypeNode
<
NumberTypeNode
<
NumberFormat
,
NumberDisplayNode
|
undefined
>
,
>
=
NumberTypeNode
<
"u8"
,
NumberDisplayNode
|
undefined
>
,
>
(
variants
:
TVariants
,
options
?:
{
size
?:
TSize
}
,
)
:
EnumTypeNode
<
TVariants
,
TSize
>
A tagged union: a numeric discriminator followed by one of several variant payloads.
Type Parameters
const
TVariants
extends
EnumVariantTypeNode
[]
const
TSize
extends
NestedTypeNode
<
NumberTypeNode
<
NumberFormat
,
NumberDisplayNode
|
undefined
>
>
=
NumberTypeNode
<
"u8"
,
NumberDisplayNode
|
undefined
>
Parameters
variants
:
TVariants
Optional
options
:
{
size
?:
TSize
}
Returns
EnumTypeNode
<
TVariants
,
TSize
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Coda by Ian Macalinao
Loading...
A tagged union: a numeric discriminator followed by one of several variant payloads.