Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TypePair

Hierarchy

Index

Constructors

constructor

  • new TypePair(type1: any, type2: any): TypePair
  • Parameters

    • type1: any
    • type2: any

    Returns TypePair

Methods

allowNull

  • allowNull(): boolean
  • Returns whether null values are okay

    Returns boolean

deserialize

  • deserialize(value: any, targetObject: any, targetKey: any, root: any): any
  • see

    BaseDataType.deserialize

    Parameters

    • value: any
    • targetObject: any
    • targetKey: any
    • root: any

    Returns any

    String error code or null on success

deserializeWithVerify

  • deserializeWithVerify(value: any, targetObject: any, targetKey: any, root: any): string | void
  • Deserializes a serialized value, but performs integrity checks before

    Parameters

    • value: any
    • targetObject: any
    • targetKey: any
    • root: any

    Returns string | void

    String error code or null on success

getAsJsonSchema

  • getAsJsonSchema(): object
  • Returns the json schema

    Returns object

    • $ref: string

getAsJsonSchemaUncached

  • getAsJsonSchemaUncached(): object
  • Returns object

    • items: any[]
    • maxLength: number
    • minLength: number
    • type: string

getCacheKey

  • getCacheKey(): string

serialize

  • serialize(value: any): any[]
  • Parameters

    • value: any

    Returns any[]

verifySerializedValue

  • verifySerializedValue(value: any): any