Skip to content

OptionDefinition.choices property

Home > streplts > OptionDefinition > choices

An static string array or a dynamic evaluation closure generating eligible autocomplete variations for the option’s value.

Signature:

choices?: string[] | ((typed: string, previousArgs: string[], context: any, globals: any) => string[]) | null;