Domain | typescript
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implemented by

Index

Methods

add

  • Parameters

    Returns void

addListener

  • addListener(event: string, listener: Function): this
  • Parameters

    • event: string
    • listener: Function

    Returns this

bind

  • bind(cb: function): any
  • Parameters

    • cb: function
        • (err: Error, data: any): any
        • Parameters

          • err: Error
          • data: any

          Returns any

    Returns any

dispose

  • dispose(): void
  • Returns void

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Parameters

    • event: string | symbol
    • Rest ...args: any[]

    Returns boolean

eventNames

  • eventNames(): (string | symbol)[]
  • Returns (string | symbol)[]

getMaxListeners

  • getMaxListeners(): number
  • Returns number

intercept

  • intercept(cb: function): any
  • Parameters

    • cb: function
        • (data: any): any
        • Parameters

          • data: any

          Returns any

    Returns any

listenerCount

  • listenerCount(type: string | symbol): number
  • Parameters

    • type: string | symbol

    Returns number

listeners

  • listeners(event: string | symbol): Function[]
  • Parameters

    • event: string | symbol

    Returns Function[]

on

  • on(event: string, listener: Function): this
  • Parameters

    • event: string
    • listener: Function

    Returns this

once

  • once(event: string, listener: Function): this
  • Parameters

    • event: string
    • listener: Function

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: Function): this
  • Parameters

    • event: string | symbol
    • listener: Function

    Returns this

remove

  • remove(emitter: Events): void
  • Parameters

    Returns void

removeAllListeners

  • removeAllListeners(event?: string): this
  • Parameters

    • Optional event: string

    Returns this

removeListener

  • removeListener(event: string, listener: Function): this
  • Parameters

    • event: string
    • listener: Function

    Returns this

run

  • run(fn: Function): void
  • Parameters

    • fn: Function

    Returns void

setMaxListeners

  • setMaxListeners(n: number): this
  • Parameters

    • n: number

    Returns this

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