Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Validator

Index

Constructors

Properties

Accessors

Methods

  • values should be equal

    Parameters

    • a: any

      1st value to compare

    • b: any

      2nd value to compare

    Returns IErrors

    errors

  • exec<TFailure>(result: boolean, failure: TFailure): IErrors
  • 1st value includes second

    Parameters

    • a: any

      iterable value, eg string or array

    • b: any

      value to find

    Returns IErrors

    errors

  • matches(value: string, re: string | RegExp, description?: string): IErrors
  • value must match regex

    Parameters

    • value: string

      string value

    • re: string | RegExp

      regular expression

    • description: string = null

      error description

    Returns IErrors

    errors

  • max(a: number, max: number): IErrors
  • value should not me more than

    Parameters

    • a: number

      value

    • max: number

      maximum value

    Returns IErrors

    errors

  • maxLength(a: string, max: number): IErrors
  • value should not me more than

    Parameters

    • a: string

      value

    • max: number

      maximum number value

    Returns IErrors

    errors

  • min(a: number, min: number): IErrors
  • value should not be less than

    Parameters

    • a: number

      value

    • min: number

      minimum value

    Returns IErrors

    errors

  • minLength(a: string, min: number): IErrors
  • value should not be less than

    Parameters

    • a: string

      value

    • min: number

      minimum number value

    Returns IErrors

    errors

Generated using TypeDoc