Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Types

Provides most used operations on types

Hierarchy

  • Types

Index

Properties

Static Map

Holds Types

type

{TypesMapProps}

Methods

Static addType

  • addType<T>(obj: string | T, type: IType<T>): void
  • add new types which implements { @see IType }

    Type parameters

    • T

    Parameters

    • obj: string | T
    • type: IType<T>

    Returns void

Static equals

  • equals(src: any, dest: any): boolean
  • Checks the given src is equals the given dest or not.

    Parameters

    • src: any
    • dest: any

    Returns boolean

Static getClone

  • getClone<T>(o: T, ignoreList?: string[]): T
  • finds @see Type by given name of object

    Type parameters

    • T

    Parameters

    • o: T
    • Optional ignoreList: string[]

    Returns T

Static getName

  • getName(o: any): string
  • Gets type name of the given value.

    Parameters

    • o: any

    Returns string

Static getRawName

  • getRawName(o: any): string
  • Gets type name of the given value.

    Parameters

    • o: any

    Returns string

Static getSize

  • getSize(o: any): number
  • gets size of the given value.

    Parameters

    • o: any

    Returns number

Static getType

  • getType(o: any): IType<any>
  • Finds @see Type by given object

    Parameters

    • o: any

    Returns IType<any>

    provides most used operation on type

Static getTypeByName

  • getTypeByName(name: string): IType<any>
  • Finds @see Type by given name of object

    Parameters

    • name: string

    Returns IType<any>

Static hasNot

  • hasNot(o: any): boolean
  • Checks value is empty or not by type.

    Parameters

    • o: any

    Returns boolean

Object literals

Static ToString

ToString: object

Holds standard types.

Array

Array: string = "[object Array]"

Boolean

Boolean: string = "[object Boolean]"

Date

Date: string = "[object Date]"

Function

Function: string = "[object Function]"

Null

Null: string = "[object Null]"

Number

Number: string = "[object Number]"

Object

Object: string = "[object Object]"

RegExp

RegExp: string = "[object RegExp]"

String

String: string = "[object String]"

Undefined

Undefined: string = "[object Undefined]"

Generated using TypeDoc