Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InterruptFactory

Hierarchy

  • InterruptFactory

Implements

Index

Constructors

constructor

  • Parameters

    • Optional interrupt: Interrupt
    • Rest ...args: any[]

    Returns InterruptFactory

Methods

addArgs

  • addArgs(...args: any[]): this
  • Parameters

    • Rest ...args: any[]

    Returns this

setCanCancel

  • setCanCancel(canCancel?: boolean): this
  • Parameters

    • Default value canCancel: boolean = true

    Returns this

setTopMenu

  • setTopMenu(topMenu?: boolean): this
  • Parameters

    • Default value topMenu: boolean = true

    Returns this

withChoice

withConfirmation

  • withConfirmation(): Promise<boolean>

withDescription

withInfo

withInitializer

  • withInitializer(initializer?: undefined | ((menu: InterruptMenu) => any)): this
  • Parameters

    • Optional initializer: undefined | ((menu: InterruptMenu) => any)

    Returns this

withInput

  • withInput(input?: undefined | ((input: Input) => any)): Promise<string>
  • Parameters

    • Optional input: undefined | ((input: Input) => any)

    Returns Promise<string>

withLoading

withMenu

  • withMenu<M>(menuId: MenuId, initializer?: undefined | ((menu: M) => any)): Promise<void>
  • Type parameters

    Parameters

    • menuId: MenuId
    • Optional initializer: undefined | ((menu: M) => any)

    Returns Promise<void>

withTitle

  • Parameters

    Returns this

Generated using TypeDoc