Interface NumberFormEntry

A form entry that requires a number answer.

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

Hierarchy (view full)

Properties

answer?: number

The answer properly typed.

Memberof

FormEntryBase

customId: string

The id of the entry.

Memberof

FormEntryBase

label: string

The entry question.

Memberof

FormEntryBase

parser: ((answer) => number)

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

Type declaration

    • (answer): number
    • Parameters

      • answer: string

      Returns number

Memberof

FormEntryBase

raw?: string

The raw value of the entry.

Memberof

FormEntryBase

responseType: "number"

The expected type.

Memberof

NumberFormEntry