Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PromptOptions

Hierarchy

  • PromptOptions

Index

Properties

default?: null | string

Default value. Will be triggered on empty responses, timeout expiration, and non-interactive contexts.

message?: string

A message to prompt.

timeout?: number

A timeout for the prompt.

validate?: UnaryFn<string, boolean>

Tests the validity of a response. Returns true for valid responses, false for non-valid ones.

Generated using TypeDoc