interface DOMEventTarget {
    addEventListener(event, listener, opts?): any;
}

Methods

  • Parameters

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

          • Rest ...args: any[]

          Returns void

    • Optional opts: {
          once: boolean;
      }
      • once: boolean

    Returns any