Type alias Validator<T>

Validator<T>: ((value: T) => string | undefined | null)

Type Parameters

  • T = unknown

    The type of the form field.

Type declaration

    • (value: T): string | undefined | null
    • Validation function for a field.

      Parameters

      • value: T

      Returns string | undefined | null

Generated using TypeDoc