Options
All
  • Public
  • Public/Protected
  • All
Menu

Provides functions that are useful for debugging. All functions in this namespace are no-ops (i.e. they do nothing) when running in production, avoiding the need to remove them.

Index

Functions

assert

  • assert(check: boolean | function, description?: string): void
  • If the expression or function passed for check evaluates to false, throws an error.

    Parameters

    • check: boolean | function

      Either an expression that evaluates to boolean, or a function that returns the same.

    • Optional description: string

      An optional human-readable description of the condition being checked.

    Returns void

flipScreen

  • flipScreen(): void

log

  • log(message: string | object | Error): void

now

  • now(): number
  • Get the amount of time that's passed since some arbitrary time, in seconds. Exact precision is not specified but will typically be sub-1µs.

    Returns number

profile

  • profile(object: object, methodName: string, description?: string): void
  • Parameters

    • object: object
    • methodName: string
    • Optional description: string

    Returns void

trace

  • trace(message: string): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • 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