Interface StringFormEntry

A form entry that requires a string answer.

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

Hierarchy (view full)

Properties

answer?: string

The answer properly typed.

Memberof

FormEntryBase

customId: string

The id of the entry.

Memberof

FormEntryBase

label: string

The entry question.

Memberof

FormEntryBase

parser: ((answer) => string)

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

Type declaration

    • (answer): string
    • Parameters

      • answer: string

      Returns string

Memberof

FormEntryBase

raw?: string

The raw value of the entry.

Memberof

FormEntryBase

responseType: "string"

The expected type.

Memberof

StringFormEntry