Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

Methods

  • listeners<EventKey>(event: string | symbol | EventKey): { cancel: any }[EventKey][]
  • Type Parameters

    • EventKey extends "cancel"

    Parameters

    • event: string | symbol | EventKey

    Returns { cancel: any }[EventKey][]

  • rawListeners<EventKey>(event: string | symbol | EventKey): { cancel: any }[EventKey][]
  • Type Parameters

    • EventKey extends "cancel"

    Parameters

    • event: string | symbol | EventKey

    Returns { cancel: any }[EventKey][]

  • emit<EventKey>(event: symbol | EventKey, ...args: Parameters<{ cancel: any }[EventKey]>): boolean
  • Type Parameters

    • EventKey extends "cancel"

    Parameters

    • event: symbol | EventKey
    • Rest ...args: Parameters<{ cancel: any }[EventKey]>

    Returns boolean

  • listenerCount<EventKey>(type: string | symbol | EventKey): number
  • Type Parameters

    • EventKey extends "cancel"

    Parameters

    • type: string | symbol | EventKey

    Returns number

  • eventNames(): string[]
  • getMaxListeners(): number

Properties

errorMonitor: typeof errorMonitor

This symbol shall be used to install a listener for only monitoring 'error' events. Listeners installed using this symbol are called before the regular 'error' listeners are called.

Installing a listener using this symbol does not change the behavior once an 'error' event is emitted, therefore the process will still crash if no regular 'error' listener is installed.

captureRejectionSymbol: typeof captureRejectionSymbol
captureRejections: boolean

Sets or gets the default captureRejection value for all emitters.

defaultMaxListeners: number

Generated using TypeDoc