EventListener<T, R>: ((...args) => R)

An EventListener transform an argument array to a function that returns void and accepts the arguments in the array as its parameters.

Type Parameters

  • T extends unknown[]
  • R = void

Type declaration

    • (...args): R
    • Parameters

      • Rest ...args: T

      Returns R