Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Fields

The namespace for the Fields factory functions.

Index

Functions

Boolean

  • Boolean(options?: Partial<IOptions<boolean>>): RegisterField<boolean>
  • A factory function which creates a boolean register field.

    Parameters

    • Default value options: Partial<IOptions<boolean>> = {}

      The options for the field. The default value option is false.

    Returns RegisterField<boolean>

    A new boolean register field.

List

  • List<T>(options?: IOptions<T>): ListField<T>
  • A factory function which creates a list field.

    Type parameters

    • T: ReadonlyJSONValue

    Parameters

    • Default value options: IOptions<T> = {}

      The options for the field.

    Returns ListField<T>

    A new list field.

Map

  • Map<T>(options?: IOptions<T>): MapField<T>
  • A factory function which creates a map field.

    Type parameters

    • T: ReadonlyJSONValue

    Parameters

    • Default value options: IOptions<T> = {}

      The options for the field.

    Returns MapField<T>

    A new map field.

Number

  • Number(options?: Partial<IOptions<number>>): RegisterField<number>
  • A factory function which creates a number register field.

    Parameters

    • Default value options: Partial<IOptions<number>> = {}

      The options for the field. The default value option is 0.

    Returns RegisterField<number>

    A new number register field.

Register

  • A factory function which creates a register field.

    Type parameters

    • T: ReadonlyJSONValue

    Parameters

    • options: IOptions<T>

      The options for the field.

    Returns RegisterField<T>

    A new register field.

String

  • String(options?: Partial<IOptions<string>>): RegisterField<string>
  • A factory function which creates a string register field.

    Parameters

    • Default value options: Partial<IOptions<string>> = {}

      The options for the field. The default value option is ''.

    Returns RegisterField<string>

    A new string register field.

Text

  • A factory function which creates a text field.

    Parameters

    • Default value options: IOptions = {}

      The options for the field.

    Returns TextField

    A new text field.

Generated using TypeDoc