Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReusableValidator<T>

A reusable validator.

Type parameters

  • T

Hierarchy

  • ReusableValidator

Callable

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

    Parameters

    • value: T

      Value to test.

    • Optional label: string

      Override the label which should be used in error messages.

    Returns void