github
Preparing search index...
The search index is not available
clide-js
clide-js
OptionArgumentType
Type Alias OptionArgumentType<T, TNargs>
OptionArgumentType
:
TNargs
extends
number
?
TNargs
extends
0
|
1
?
OptionPrimitiveType
<
T
>
:
OptionPrimitiveType
<
T
>
extends
infer
T
extends
OptionPrimitiveType
?
T
extends
readonly
any
[]
?
T
:
T
[]
:
never
:
OptionPrimitiveType
<
T
>
Get the argument type for an option considering the number of arguments it accepts.
Type Parameters
T
extends
OptionType
=
OptionType
TNargs
extends
number
|
undefined
=
undefined
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
github
clide-js
Loading...
Get the argument type for an option considering the number of arguments it accepts.