Function errorsPlugin

  • Enhances the field with errors.

    Type Parameters

    • Error = any

      The error associated with the field.

    Parameters

    • concatErrors: ((errors: readonly Error[], error: Error) => readonly Error[]) = concatUniqueErrors

      The callback that returns the new array of errors that includes the given error, or returns the original errors array if there are no changes. By default, only identity-based-unique errors are added.

        • (errors, error): readonly Error[]
        • Parameters

          Returns readonly Error[]

    Returns PluginInjector<ErrorsPlugin<Error>>