Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Domain

Hierarchy

Implemented by

Index

Methods

add

  • Parameters

    Returns void

addListener

  • addListener(event: string, listener: (...args: any[]) => void): this
  • Parameters

    • event: string
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

bind

  • bind<T>(cb: T): T
  • Type parameters

    Parameters

    • cb: T

    Returns T

emit

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

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

    Returns boolean

eventNames

  • eventNames(): Array<string | symbol>

getMaxListeners

  • getMaxListeners(): number

intercept

  • intercept<T>(cb: T): T
  • Type parameters

    Parameters

    • cb: T

    Returns T

listenerCount

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

    • type: string | symbol

    Returns number

listeners

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

    • event: string | symbol

    Returns Function[]

off

  • off(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

on

  • on(event: string, listener: (...args: any[]) => void): this
  • Parameters

    • event: string
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

once

  • once(event: string, listener: (...args: any[]) => void): this
  • Parameters

    • event: string
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependListener

  • prependListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

prependOnceListener

  • prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this
  • Parameters

    • event: string | symbol
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

rawListeners

  • rawListeners(event: string | symbol): Function[]

remove

  • Parameters

    Returns void

removeAllListeners

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

    • Optional event: undefined | string

    Returns this

removeListener

  • removeListener(event: string, listener: (...args: any[]) => void): this
  • Parameters

    • event: string
    • listener: (...args: any[]) => void
        • (...args: any[]): void
        • Parameters

          • Rest ...args: any[]

          Returns void

    Returns this

run

  • run<T>(fn: (...args: any[]) => T, ...args: any[]): T
  • Type parameters

    • T

    Parameters

    • fn: (...args: any[]) => T
        • (...args: any[]): T
        • Parameters

          • Rest ...args: any[]

          Returns T

    • Rest ...args: any[]

    Returns T

setMaxListeners

  • setMaxListeners(n: number): this