Optional
Readonly
choices?: ReadonlyArray<string>The allowed parameter values.
Optional
Readonly
mapping?: Readonly<Record<string, unknown>>The mapping of parameter values to option values.
Optional
Readonly
normalize?: NormalizationCallbackA normalization function applied to parameters before they get validated and/or parsed.
Optional
Readonly
regex?: RegExpThe regular expression that parameters should match.
Defines attributes for options that may have parameter selection constraints.