Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Methods

addListener

  • addListener(event: EventType, handler: Handler<any>): EventEmitter
  • Parameters

    • event: EventType
    • handler: Handler<any>

    Returns EventEmitter

emit

  • emit(event: EventType, eventData?: any): boolean
  • Parameters

    • event: EventType
    • Optional eventData: any

    Returns boolean

listenerCount

  • listenerCount(event: string): number
  • Parameters

    • event: string

    Returns number

off

  • off(event: EventType, handler: Handler<any>): EventEmitter
  • Parameters

    • event: EventType
    • handler: Handler<any>

    Returns EventEmitter

on

  • Parameters

    • event: EventType
    • handler: Handler<any>

    Returns EventEmitter

once

  • once(event: EventType, handler: Handler<any>): EventEmitter
  • Parameters

    • event: EventType
    • handler: Handler<any>

    Returns EventEmitter

removeAllListeners

  • Parameters

    • Optional event: string | symbol

    Returns EventEmitter

removeListener

  • removeListener(event: EventType, handler: Handler<any>): EventEmitter
  • Parameters

    • event: EventType
    • handler: Handler<any>

    Returns EventEmitter

Generated using TypeDoc