Options
All
  • Public
  • Public/Protected
  • All
Menu

An object that performs validation on a set of input values.

Type parameters

  • T

Hierarchy

  • Validator

Implemented by

Index

Methods

Methods

validate

  • Determines whether a given value is valid.

    Parameters

    • value: T

      The input value to validate

    • Optional cotext: any

    Returns Promise<ValidationResult<T>>

    A promise of a validation result. If the input is invalid, this will be a rejected promise.