Type Alias QuestionUntilConditionMetOptions

QuestionUntilConditionMetOptions: {
    invalidInputMessage: string;
    questionToAsk: string;
    tryCountMax?: number;
    verifyResponseCallback: ((response: string) => boolean | Promise<boolean>);
} & Partial<AskQuestionOptions>

Type declaration

  • invalidInputMessage: string
  • questionToAsk: string
  • OptionaltryCountMax?: number
  • verifyResponseCallback: ((response: string) => boolean | Promise<boolean>)

    Callback to call with the user's response to verify if their response is valid.

      • (response): boolean | Promise<boolean>
      • Parameters

        • response: string

        Returns boolean | Promise<boolean>