Prompts the user to select an option from the given choices.

  • Type Parameters

    • Res extends string

    Parameters

    • type: "select"
    • message: string
    • choices: string[] | Choice[]

    Returns Promise<Res>

  • Type Parameters

    • Res extends string[]

    Parameters

    • type: "multiselect"
    • message: string
    • choices: string[] | Choice[]

    Returns Promise<Res>