OptionDef
Defined in: packages/core/src/commands.ts:103
One option of a command. T is the type the handler receives and C the
configuration it was made with, which decides whether it can be missing.
Make one with option.
Type Parameters
Section titled “Type Parameters”T
C
Properties
Section titled “Properties”__type
Section titled “__type”
readonly__type:T
Defined in: packages/core/src/commands.ts:109
Type only: the type the handler receives. Never present at runtime.
config
Section titled “config”
readonlyconfig:C
Defined in: packages/core/src/commands.ts:105
readonlykind:OptionKind
Defined in: packages/core/src/commands.ts:104
words?
Section titled “words?”
readonlyoptionalwords?: readonlystring[]
Defined in: packages/core/src/commands.ts:107
Choices for option.choice; undefined for the other kinds.