Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Domain

Hierarchy

Index

Methods

add

  • Parameters

    Returns void

addListener

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

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

          • Rest ...args: any[]

          Returns void

    Returns Domain

bind

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

    • T: Function

    Parameters

    • cb: T

    Returns T

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

intercept

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

    • T: Function

    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): Domain
  • Parameters

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

          • Rest ...args: any[]

          Returns void

    Returns Domain

on

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

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

          • Rest ...args: any[]

          Returns void

    Returns Domain

once

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

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

          • Rest ...args: any[]

          Returns void

    Returns Domain

prependListener

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

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

          • Rest ...args: any[]

          Returns void

    Returns Domain

prependOnceListener

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

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

          • Rest ...args: any[]

          Returns void

    Returns Domain

rawListeners

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

    • event: string | symbol

    Returns Function[]

remove

  • Parameters

    Returns void

removeAllListeners

  • removeAllListeners(event?: string): Domain

removeListener

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

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

          • Rest ...args: any[]

          Returns void

    Returns Domain

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): Domain

Generated using TypeDoc