@Cards-TS
    Preparing search index...

    Class InquirerPresenter

    Prompts questions to the user using the Inquirer library

    Implements

    Index

    Constructors

    Methods

    • Allow the user to select multiple or no options from a list

      The validator function passed must not use any closure variables to work properly over a serialized interface

      Type Parameters

      • T
      • ValidateParam

      Parameters

      • options: {
            choices: { name: string; value: T }[];
            message: Presentable[];
            type: string;
            validate?: (
                input: T[],
                validateParam: ValidateParam,
            ) => string | true | Promise<string | true>;
            validateParam?: ValidateParam;
        }

        the options to pass

      Returns () => Promise<any>

    • Allow a user to input a text string of their choice

      The validator function passed must not use any closure variables to work properly over a serialized interface

      Type Parameters

      • ValidateParam

      Parameters

      • options: {
            message: Presentable[];
            validate?: (
                input: string,
                param: ValidateParam,
            ) => string | true | Promise<string | true>;
            validateParam?: ValidateParam;
        }

        the options to pass

      Returns () => Promise<any>

    • Allows a user to select from a list

      Type Parameters

      • T

      Parameters

      • options: { choices: { name: string; value: T }[]; message: Presentable[]; type: string }

        the options to pass

      Returns () => Promise<any>

    • Allow a user to decide wherein a list to place an item

      The validator function passed must not use any closure variables to work properly over a serialized interface

      Type Parameters

      • T
      • ValidateParam

      Parameters

      • options: {
            choices: { name: string; value: T }[];
            message: Presentable[];
            placeholder: string;
            validate?: (
                input: number,
                param: ValidateParam,
            ) => string | true | Promise<string | true>;
            validateParam?: ValidateParam;
        }

        the options to pass

      Returns () => Promise<any>