Function: buildChoiceParser()
buildChoiceParser<
T
>(choices
):InputParser
<T
>
Creates an input parser that checks if the input string is found in a list of choices.
Type Parameters
• T extends string
Parameters
• choices: readonly T
[]
Returns
InputParser
<T
>