Type Alias ValidatorFunction<This, Value>

ValidatorFunction: (value: Value, targetInstance: This) => boolean

ValidatorFunction. is a function that takes the current value and instance as input and returns a boolean if an arbitrary condition pass.

Type Parameters

  • This
  • Value

Type declaration

    • (value: Value, targetInstance: This): boolean
    • Parameters

      Returns boolean