Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

footer?: string
header?: string
initial?: string
message: string | (() => string) | (() => Promise<string>)
multiline?: boolean
required?: boolean
stdin?: ReadStream
stdout?: WriteStream

Methods

  • format(value: any): any
  • Parameters

    • value: any

    Returns any

  • onCancel(name: any, value: any, prompt: Enquirer.Prompt): boolean | Promise<boolean>
  • onSubmit(name: any, value: any, prompt: Enquirer.Prompt): boolean | Promise<boolean>
  • result(value: any): any
  • Parameters

    • value: any

    Returns any

  • skip(value: any): boolean | Promise<boolean>
  • Parameters

    • value: any

    Returns boolean | Promise<boolean>

  • validate(value: any, state: any): string | boolean | Promise<string> | Promise<string | boolean> | Promise<boolean>
  • Parameters

    • value: any
    • state: any

    Returns string | boolean | Promise<string> | Promise<string | boolean> | Promise<boolean>