Class SelectionBuilder

Hierarchy

  • Base
    • SelectionBuilder

Constructors

Properties

defaultOption: Set<number> = ...
options: Option[] = []
prompt: string = "Select some options:"
rl: Interface = ...

Methods

  • Returns void

  • Parameters

    • currentSelection: number
    • selected: Set<number>

    Returns string

  • Returns the string to print to the console. Includes the prompt, options, and instructions.

    Returns

    The string to print to the console

    Parameters

    • currentSelection: number

      The index of the currently selected option (The option the cursor is on)

    • selectedOptions: Set<number>

      The indexes of the options that are currently selected and will be returned

    Returns string

  • Parameters

    • message: string = ""

    Returns Promise<string>

Generated using TypeDoc