Skip to content

Commit b1b25dd

Browse files
author
Simon he
committed
chore: update
1 parent 3318fcf commit b1b25dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/addEventListener.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isStr } from './isStr'
22
import { animationFrameWrapper } from './animationFrameWrapper'
33

4-
export function addEventListener(target: Window | Document | Element | string, eventName: string, callback: (e: any) => void, useCapture?: boolean, autoRemove?: boolean): (() => void) {
4+
export function addEventListener(target: Window | Document | Element | string, eventName: string, callback: (e: any) => void, useCapture?: boolean | AddEventListenerOptions, autoRemove?: boolean): (() => void) {
55
let isMounted = false
66
let hasMounted = false
77
let stopped = false

0 commit comments

Comments
 (0)