@wopjs/dom - v0.1.3
    Preparing search index...

    Function addEventListener

    • Type Parameters

      • K extends keyof WindowEventMap

      Parameters

      • target: Window
      • type: K
      • listener: (this: Window, ev: WindowEventMap[K]) => unknown
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns () => void

    • Type Parameters

      • K extends keyof DocumentEventMap

      Parameters

      • target: Document
      • type: K
      • listener: (this: Document, ev: DocumentEventMap[K]) => unknown
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns () => void

    • Type Parameters

      • K extends keyof HTMLElementEventMap

      Parameters

      • target: HTMLElement
      • type: K
      • listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => unknown
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns () => void

    • Type Parameters

      • K extends "change"

      Parameters

      • target: MediaQueryList
      • type: K
      • listener: (this: HTMLElement, ev: MediaQueryListEventMap[K]) => unknown
      • Optionaloptions: boolean | AddEventListenerOptions

      Returns () => void