Interface BooleanFormEntry

A form entry that requires a boolean answer.

interface BooleanFormEntry {
    answer?: boolean;
    customId: string;
    label: string;
    parser: ((answer) => boolean);
    raw?: string;
    responseType: "boolean";
}

Hierarchy (view full)

Properties

answer?: boolean

The answer properly typed.

Memberof

FormEntryBase

customId: string

The id of the entry.

Memberof

FormEntryBase

label: string

The entry question.

Memberof

FormEntryBase

parser: ((answer) => boolean)

The parser to transform the string response to the proper type.

Type declaration

    • (answer): boolean
    • Parameters

      • answer: string

      Returns boolean

Memberof

FormEntryBase

raw?: string

The raw value of the entry.

Memberof

FormEntryBase

responseType: "boolean"

The expected type.

Memberof

BooleanFormEntry