Interface ExternalErrorsPlugin<ExternalError, Error>

The plugin that associates external errors with fields using adopters.

interface ExternalErrorsPlugin<ExternalError, Error> {
    externalErrorAdopters: ((externalError) => undefined | void | Error)[];
    adoptExternalErrors(externalErrors, options?): ExternalError[];
}

Type Parameters

  • ExternalError

    The external error that can be adopted by the field.

  • Error

    The error that is associated with the field.

Properties

externalErrorAdopters: ((externalError) => undefined | void | Error)[]

An array of callbacks that receive an external error and return an error that must be associated with the field, or undefined if the external error must not be associated with the field.

Type declaration

Methods