Documentation
    Preparing search index...

    Provides the functionality to initialize new prompts.

    interface PromptConstructor {
        new PromptConstructor(
            question: any,
            readLine: Interface,
            answers: Answers,
        ): PromptBase;
    }
    Index

    Constructors

    Constructors

    • Initializes a new instance of a prompt.

      Parameters

      • question: any

        The question to prompt.

      • readLine: Interface

        An object for reading from the command-line.

      • answers: Answers

        The answers provided by the user.

      Returns PromptBase