Saltar al contenido principal
Versión: Next (sin publicar)

Interface: InputStep

Defined in: tui/ink/wizard.tsx:37

A line of text.

Extends​

  • BaseStep

Properties​

PropertyTypeDescriptionInherited fromDefined in
default?FromAnswers<string>--tui/ink/wizard.tsx:39
messageFromAnswers<string>-BaseStep.messagetui/ink/wizard.tsx:23
namestringKey of this step's answer in the result.BaseStep.nametui/ink/wizard.tsx:22
type"input"--tui/ink/wizard.tsx:38
validate?(value, answers) => string | truetrue to accept, or the message to show.-tui/ink/wizard.tsx:41
when?(answers) => booleanSkips the step (leaving no answer) when it returns false.BaseStep.whentui/ink/wizard.tsx:25