Setu-TS
    Preparing search index...

    Interface Prompter

    Asks the scaffold questions setu new accepts as flags.

    interface Prompter {
        select(
            question: string,
            choices: readonly PromptChoice[],
        ): Promise<PromptSelection>;
    }
    Index
    • Asks one question and reports the chosen value.

      Parameters

      • question: string

        The question text; the default is rendered inside it

      • choices: readonly PromptChoice[]

        The acceptable answers, first being the default

      Returns Promise<PromptSelection>

      The answer, cancellation, or inability to ask

      In 0.9.0 the return changed to PromptSelection; earlier versions returned a string or undefined.