Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ValidationLib

Since validation functions are not allowed to close over scope variables, ValidationLib objects contain some helpers to use in validation functions.

Hierarchy

  • ValidationLib

Index

Properties

Methods

Properties

JSON

JSON: JSON

Methods

failIf

  • failIf(condition: boolean, message: string): void

isArray

  • isArray(obj: object): boolean

log

  • log(message: string): void

sum

  • sum(arr: number[]): number

toJSON

  • toJSON(obj: object): string

Generated using TypeDoc