Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Validation

Hierarchy

  • Validation

Index

Methods

Static assertArray

  • assertArray(value: any[], name?: string): void
  • Parameters

    • value: any[]
    • Optional name: string

    Returns void

Static assertBoolean

  • assertBoolean(value: boolean, name?: string): void
  • Parameters

    • value: boolean
    • Optional name: string

    Returns void

Static assertDate

  • assertDate(value: Date, name?: string): void
  • Parameters

    • value: Date
    • Optional name: string

    Returns void

Static assertNonEmptyString

  • assertNonEmptyString(value: string, name?: string): void
  • Parameters

    • value: string
    • Optional name: string

    Returns void

Static assertNumber

  • assertNumber(value: number, name?: string): void
  • Parameters

    • value: number
    • Optional name: string

    Returns void

Static assertString

  • assertString(value: string, name?: string): void
  • Parameters

    • value: string
    • Optional name: string

    Returns void

Static assertValidArrayIndex

  • assertValidArrayIndex(index: number, array: any[], name?: string): void
  • Parameters

    • index: number
    • array: any[]
    • Optional name: string

    Returns void

Static assertValidIndex

  • assertValidIndex(index: number, lower: number, upper: number, name?: string): void
  • Parameters

    • index: number
    • lower: number
    • upper: number
    • Optional name: string

    Returns void

Static assertValidStringIndex

  • assertValidStringIndex(index: number, str: string, inclusiveEnd: boolean, name?: string): void
  • Parameters

    • index: number
    • str: string
    • inclusiveEnd: boolean
    • Optional name: string

    Returns void

Static isNotSet

  • isNotSet(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

Static isSet

  • isSet(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

Static nonEmptyString

  • nonEmptyString(value: string): boolean
  • Parameters

    • value: string

    Returns boolean