Edgewise API
Docs
GitHub
Preparing search index...
index
choice
Function choice
choice
<
K
extends
string
>
(
options
:
Record
<
K
,
string
>
,
opts
?:
Omit
<
ChoiceQuestion
<
NoInfer
<
K
>
>
,
"kind"
|
"options"
>
,
)
:
ChoiceQuestion
<
K
>
Pick one of up to 255 named options. The answer's
choice
is typed as your keys.
Type Parameters
K
extends
string
Parameters
options
:
Record
<
K
,
string
>
opts
:
Omit
<
ChoiceQuestion
<
NoInfer
<
K
>
>
,
"kind"
|
"options"
>
= {}
Returns
ChoiceQuestion
<
K
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Docs
GitHub
Edgewise API
Loading...
Pick one of up to 255 named options. The answer's
choiceis typed as your keys.