Type alias Listener<This, Args>

Listener<This, Args>: ((this, ...args) => void | Promise<void>)

Type Parameters

  • This

  • Args extends any[]

Type declaration

    • (this, ...args): void | Promise<void>
    • Listener type. Defines the function signature that a listener is expected to have.

      Parameters

      • this: This
      • Rest ...args: Args

      Returns void | Promise<void>

Generated using TypeDoc