Type alias ValidatorFunc<T>

ValidatorFunc<T>: ((val) => void | string | string[])

To implement a custom validator, just implement a function that takes the value to be validated and returns either undefined or an error of error strings.

Type Parameters

  • T

Type declaration

    • (val): void | string | string[]
    • Parameters

      • val: T | undefined

      Returns void | string | string[]

Generated using TypeDoc