Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReusableValidator<T>

Type parameters

  • T

Hierarchy

  • ReusableValidator

Callable

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

    Parameters

    • value: unknown

      Value to test.

    • Optional label: string

      Override the label which should be used in error messages.

    Returns void