Type alias MessageResolver<T>

MessageResolver<T>: ((validation: T) => string)

Type Parameters

  • T

    The type of the validation argument (e.g. minLength has number to represent the minimum length).

Type declaration

    • (validation: T): string
    • A function that receives the validation argument of a field, such as the minimum length or the regular expression, and returns the error message for the field.

      Parameters

      • validation: T

        The validation that was not met.

      Returns string

Generated using TypeDoc