Type Alias PluginInjector<Plugin, Value>

PluginInjector<Plugin, Value>: ((field: Field<PreferAny<Value>, Plugin>) => void)

The callback that enhances the field with a plugin. Injector should mutate the passed field instance.

Type Parameters

  • Plugin = unknown

    The plugin injected into the field.

  • Value = unknown

    The root field value.

Type declaration

    • (field): void
    • Parameters

      Returns void