Options
All
  • Public
  • Public/Protected
  • All
Menu

Validator class for the primitive types. This is used for the first step before using our custom validators to prevent unecessary computations. We just call the validate method and return the result

Hierarchy

  • BasicAttributeValidator

Index

Methods

Object literals

Methods

validate

  • This method validates the type of the given variable based on the configuration given. If the value isn't of that type then we add an error and return the result.

    Parameters

    • attribute: string

      The attribute name

    • value: string

      The value

    • attributeConfig: AttributeConfig

      The attribute configuration

    Returns ValidationResult

    The validation result object

Object literals

Private basicAttributeValidations

basicAttributeValidations: object

color

  • color(val: any): boolean

integer

  • integer(val: any): boolean

number

  • number(val: any): boolean

object

  • object(val: any): boolean

string

  • string(val: any): boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc