github
Preparing search index...
The search index is not available
clide-js
clide-js
OptionConfigPrimitiveType
Type Alias OptionConfigPrimitiveType<T>
OptionConfigPrimitiveType
:
T
extends
OptionConfig
?
T
[
"required"
]
extends
true
?
OptionArgumentType
<
OptionConfigType
<
T
>
,
"nargs"
extends
keyof
T
?
T
[
"nargs"
]
:
undefined
,
>
:
T
[
"default"
]
extends
MaybeReadonly
<
OptionArgumentType
<
OptionConfigType
<
T
>
>
,
>
?
OptionArgumentType
<
OptionConfigType
<
T
>
,
"nargs"
extends
keyof
T
?
T
[
"nargs"
]
:
undefined
,
>
:
|
OptionArgumentType
<
OptionConfigType
<
T
>
,
"nargs"
extends
keyof
T
?
T
[
"nargs"
]
:
undefined
,
>
|
undefined
:
undefined
Get the primitive type for an option considering it's config.
Type Parameters
T
extends
OptionConfig
=
OptionConfig
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
github
clide-js
Loading...
Get the primitive type for an option considering it's config.