We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3318fcf commit b1b25ddCopy full SHA for b1b25dd
src/addEventListener.ts
@@ -1,7 +1,7 @@
1
import { isStr } from './isStr'
2
import { animationFrameWrapper } from './animationFrameWrapper'
3
4
-export function addEventListener(target: Window | Document | Element | string, eventName: string, callback: (e: any) => void, useCapture?: boolean, autoRemove?: boolean): (() => void) {
+export function addEventListener(target: Window | Document | Element | string, eventName: string, callback: (e: any) => void, useCapture?: boolean | AddEventListenerOptions, autoRemove?: boolean): (() => void) {
5
let isMounted = false
6
let hasMounted = false
7
let stopped = false
0 commit comments