Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Properties

disabled?: string
enabled?: string
footer?: string
header?: string
initial?: string | number | boolean | number[] | (() => string) | (() => Promise<string>)
message: string | (() => string) | (() => Promise<string>)
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 | boolean> | Promise<boolean> | Promise<string>
  • Parameters

    • value: any
    • state: any

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