mirror of https://github.com/sveltejs/svelte
feat: type `currentTarget` in `on` function (#17370)
* feat: type `currentTarget` in `on` function * `EventTarget &` is redundant, `Element` already extends `EventTarget` * no need for optional chaining * add currentTarget for other overloads * update changeset --------- Co-authored-by: Rich Harris <rich.harris@vercel.com>pull/17388/head
parent
95a895a9d9
commit
acd752524b
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: type `currentTarget` in `on` function
|
||||
Loading…
Reference in new issue