Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Console

Index

Constructors

constructor

  • Parameters

    Returns Console

Properties

assert

assert: function

Writes an error message to stdout if the assertion is false. If the assertion is true, nothing happens.

ref: https://console.spec.whatwg.org/#assert

Type declaration

    • (condition?: boolean, ...args: any[]): void
    • Parameters

      • Optional condition: boolean
      • Rest ...args: any[]

      Returns void

clear

clear: function

Type declaration

    • (): void
    • Returns void

collapsedAt

collapsedAt: number | null

count

count: function

Type declaration

    • (label?: string): void
    • Parameters

      • Optional label: string

      Returns void

countReset

countReset: function

Type declaration

    • (label?: string): void
    • Parameters

      • Optional label: string

      Returns void

debug

debug: function

Writes the arguments to stdout

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

dir

dir: function

Writes the properties of the supplied obj to stdout

Type declaration

    • (obj: any, options?: Partial<object>): void
    • Parameters

      • obj: any
      • Optional options: Partial<object>

      Returns void

error

error: function

Writes the arguments to stdout

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

group

group: function

Type declaration

    • (...label: unknown[]): void
    • Parameters

      • Rest ...label: unknown[]

      Returns void

groupCollapsed

groupCollapsed: function

Type declaration

    • (...label: unknown[]): void
    • Parameters

      • Rest ...label: unknown[]

      Returns void

groupEnd

groupEnd: function

Type declaration

    • (): void
    • Returns void

indentLevel

indentLevel: number

info

info: function

Writes the arguments to stdout

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

log

log: function

Writes the arguments to stdout

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

table

table: function

Type declaration

    • (data: any, properties?: string[] | undefined): void
    • Parameters

      • data: any
      • Optional properties: string[] | undefined

      Returns void

time

time: function

Type declaration

    • (label?: string): void
    • Parameters

      • Optional label: string

      Returns void

timeEnd

timeEnd: function

Type declaration

    • (label?: string): void
    • Parameters

      • Optional label: string

      Returns void

timeLog

timeLog: function

Type declaration

    • (label?: string, ...args: any[]): void
    • Parameters

      • Optional label: string
      • Rest ...args: any[]

      Returns void

warn

warn: function

Writes the arguments to stdout

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      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

Generated using TypeDoc