Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "util/Types"

Index

Variables

Const UnknownType

UnknownType: Type<any> = new Type<any>({getClone: (o: any, ignoreList?: string[]): any => {return o;},getSize: (o: any): number => {let size = 0;for (const key in o) {if (hasOwnProperty.call(o, key)) {size += 2 * key.length;size += Types.getSize(o[key]);}}return size;},hasNot: (o: any) => Type.hasNot(o),isJsonType: () => false,isNativeType: () => false,isPrimitive: () => false,})

It will use if Type is not in { Number, Boolean, Array, String, Date, RegExp, Null, Function, Undefined, Object } types.

type

{Type}

Const hasOwnProperty

hasOwnProperty: hasOwnProperty = Object.prototype.hasOwnProperty

Const nullOrUndefined

nullOrUndefined: Type<any> = new Type<any>({hasNot: () => true,})

Null or Undefined Type

type

{Type}

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