Type alias Async<T, Err>

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

Type Parameters

  • T

  • Err

Type declaration

    • (value): Promise<Err | null>
    • Function responsible for validating single field asynchronously.

      Parameters

      • value: T

        value to be validated of type T

      Returns Promise<Err | null>

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

Generated using TypeDoc