Interface FormEntryBase<T>

A form entry.

FormEntryBase

interface FormEntryBase<T> {
    answer?: T;
    customId: string;
    label: string;
    parser: ((answer) => T);
    raw?: string;
}

Type Parameters

  • T

Hierarchy (view full)

Properties

answer?: T

The answer properly typed.

Memberof

FormEntryBase

customId: string

The id of the entry.

Memberof

FormEntryBase

label: string

The entry question.

Memberof

FormEntryBase

parser: ((answer) => T)

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

Type declaration

    • (answer): T
    • Parameters

      • answer: string

      Returns T

Memberof

FormEntryBase

raw?: string

The raw value of the entry.

Memberof

FormEntryBase