ow
Options
All
  • Public
  • Public/Protected
  • All
Menu

A reusable validator.

Type parameters

  • T

Hierarchy

  • ReusableValidator

Callable

  • __call(value: T, label?: undefined | string): void
  • Test if the value matches the predicate. Throws an ArgumentError if the test fails.

    Parameters

    • value: T

      Value to test.

    • Optional label: undefined | string

      Override the label which should be used in error messages.

    Returns void