mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
types: improve event target typing
This commit is contained in:
parent
2eb680723d
commit
6d4efa183e
@ -20,7 +20,7 @@ if (!isServer) {
|
||||
}
|
||||
|
||||
export function on(
|
||||
target: HTMLElement | Document | Window,
|
||||
target: EventTarget,
|
||||
event: string,
|
||||
handler: EventHandler,
|
||||
passive = false
|
||||
@ -35,7 +35,7 @@ export function on(
|
||||
}
|
||||
|
||||
export function off(
|
||||
target: HTMLElement | Document | Window,
|
||||
target: EventTarget,
|
||||
event: string,
|
||||
handler: EventHandler
|
||||
) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user