Interface CustomYupErrorsTranslations

Custom errors not handled by yup.setLocale

Hierarchy

  • CustomYupErrorsTranslations

Properties

Properties

dynamic: ((comparisonOperator, fieldName) => string)

Type declaration

    • (comparisonOperator, fieldName): string
    • When an attribute does not respect a constraint to another attribute.

      Parameters

      • comparisonOperator: string

        The comparison operator between the attribute in error and the one linked

      • fieldName: string

        The linked attribute which the one in error compares to

      Returns string

      A translated error string

required: string

When a relation required is not filled.

Generated using TypeDoc