Constructors
constructor
- new default(_priority?: PromptPriority): default
-
Methods
choice
- choice<A, CHOICES>(type: SupplierOr<Prompt, []>, choices: CHOICES): IPromptChoiceDescription<A, CHOICES>
-
Parameters
-
type: SupplierOr<Prompt, []>
-
choices: CHOICES
input
- input<A>(type: Prompt, configure?: ((input: default, ...args: A) => any), canCancel?: true): IPromptInputDescription<A>
-
Parameters
-
-
Optional
configure: ((input: default, ...args: A) => any)
-
- (input: default, ...args: A): any
-
Returns any
-
Optional
canCancel: true
menu
-
Type Parameters
-
MENU extends MenuId
-
A extends any[] = []
Parameters
-
-
menu: MENU
-
Optional
configure: ((menu: MenuById[MENU], ...args: A) => any)
-
- (menu: MenuById[MENU], ...args: A): any
-
Returns any
priority
- priority(priority: PromptPriority): default
-
Static
priority
- priority(priority: PromptPriority): default
-
Deprecated
Use PromptDescriptionFactory.priority