Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/types"

Index

Functions

getBaseClasses

  • getBaseClasses(object: any): Array<string>
  • A function that gets the entire class hierarchy of an object.

    Parameters

    • object: any

      The object. Returns an array of strings with the name of all base classes.

    Returns Array<string>

getClass

  • getClass(object: any): string
  • A function that gets the class name of an object.

    Parameters

    • object: any

      The object. Returns a string with the name of the class.

    Returns string

getClassInfo

  • A function that gets the ClassInfo for an object.

    Parameters

    • object: Object

      The object. Returns a ClassInfo for the object.

    Returns ClassInfo

isBoolean

  • isBoolean(value: any): boolean
  • A function that checks if something is a valid boolean.

    Parameters

    • value: any

      The value which will be checked. Returns true if value is a boolean.

    Returns boolean

isDefined

  • isDefined(value: any): boolean
  • A function that checks if something is defined (not undefined).

    Parameters

    • value: any

      The value which will be checked. Returns true if value is defined.

    Returns boolean

isFunction

  • isFunction(value: any): boolean
  • A function that checks if something is a function.

    Parameters

    • value: any

      The value which will be checked. Returns true if value is a function.

    Returns boolean

isNullOrUndefined

  • isNullOrUndefined(value: any): boolean
  • A function that checks if something is not defined (null or undefined).

    Parameters

    • value: any

      The value which will be checked. Returns true if value is null or undefined.

    Returns boolean

isNumber

  • isNumber(value: any): boolean
  • A function that checks if something is a valid number.

    Parameters

    • value: any

      The value which will be checked. Returns true if value is a number.

    Returns boolean

isObject

  • isObject(value: any): boolean
  • A function that checks if something is an object.

    Parameters

    • value: any

      The value which will be checked. Returns true if value is an object.

    Returns boolean

isString

  • isString(value: any): boolean
  • A function that checks if something is a valid string.

    Parameters

    • value: any

      The value which will be checked. Returns true if value is a string.

    Returns boolean

isUndefined

  • isUndefined(value: any): boolean
  • A function that checks if something is "undefined".

    Parameters

    • value: any

      The value which will be checked. Returns true if value is "undefined".

    Returns boolean

toUIString

  • toUIString(object: any): string
  • Returns a string representation of an object to be shown in UI.

    Parameters

    • object: any

      The object.

    Returns string

verifyCallback

  • verifyCallback(value: any): void
  • A function that checks if something is a valid function.

    Parameters

    • value: any

      The value which will be checked. Throws exception if passed value is not a valid function.

    Returns void

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