Function createField

  • Creates the new field instance.

    Type Parameters

    • Value = any

      The root field value.

    Returns Field<Value | undefined>

  • Creates the new field instance.

    Type Parameters

    • Value

      The root field value.

    Parameters

    • initialValue: Value

      The initial value assigned to the field.

    • Optionalaccessor: ValueAccessor

      Resolves values for child fields.

    Returns Field<Value>

  • Creates the new field instance.

    Type Parameters

    • Value

      The root field initial value.

    • Plugin

      The plugin injected into the field.

    Parameters

    • initialValue: Value

      The initial value assigned to the field.

    • plugin: PluginInjector<Plugin>

      The plugin injector that enhances the field.

    • Optionalaccessor: ValueAccessor

      Resolves values for child fields.

    Returns Field<Value, Plugin>

  • Creates the new field instance.

    Type Parameters

    • Value

      The root field initial value.

    • Plugin

      The plugin injected into the field.

    Parameters

    • initialValue: Value

      The initial value assigned to the field.

    • plugin: PluginInjector<Plugin, NoInfer<Value>>

      The plugin injector that enhances the field.

    • Optionalaccessor: ValueAccessor

      Resolves values for child fields.

    Returns Field<Value, Plugin>