AllEventListener<T, R>: ((eventName, ...args) => R)

An AllEventListener is a function that is called whenever any event is emitted. It is called with the event name and the arguments of the event.

Type Parameters

  • T
  • R = void

Type declaration

    • (eventName, ...args): R
    • Parameters

      • eventName: T
      • Rest ...args: unknown[]

      Returns R