Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IInterruptFactory

Hierarchy

Implemented by

Index

Methods

withChoice

withConfirmation

  • withConfirmation(): Promise<boolean>
  • Returns Promise<boolean>

withDescription

withInfo

  • Returns Promise<void>

withInput

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

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

    Returns Promise<string>

withLoading

  • Parameters

    • Optional until: Promise<any> | (() => Promise<any>)
    • Optional canCancel: boolean | (() => O)
    • Optional specialType: undefined | string

    Returns Promise<InterruptChoice | undefined>

withMenu

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

Generated using TypeDoc