Type alias Sync<T, Err>

Sync<T, Err>: ((value) => Err | null)

Type Parameters

  • T

  • Err

Type declaration

    • (value): Err | null
    • Function responsible for validating single field.

      Parameters

      • value: T

        value to be validated of type T

      Returns Err | null

      validation error of type Err, or null when field is valid

Generated using TypeDoc