Interface: SelectStep<T>
Defined in: tui/ink/wizard.tsx:29
A choice among choices; the answer is the chosen value.
Extends
BaseStep
Type Parameters
| Type Parameter | Default type |
|---|---|
T | unknown |
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
choices | FromAnswers<object[]> | - | - | tui/ink/wizard.tsx:31 |
default? | FromAnswers<T> | Preselects the choice with this value. | - | tui/ink/wizard.tsx:33 |
message | FromAnswers<string> | - | BaseStep.message | tui/ink/wizard.tsx:23 |
name | string | Key of this step's answer in the result. | BaseStep.name | tui/ink/wizard.tsx:22 |
type | "select" | - | - | tui/ink/wizard.tsx:30 |
when? | (answers) => boolean | Skips the step (leaving no answer) when it returns false. | BaseStep.when | tui/ink/wizard.tsx:25 |