useEventListener
type def: support custom events
#6684
vincerubinetti
started this conversation in
Feature requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
useEventListener
expectskeyof HTMLElementEventMap
. I think instead ofK extends keyof HTMLElementEventMap
, it should beK extends string = keyof HTMLElementEventMap
. This way we could define our own custom event without an error likeuseEventListener<"my-event">()
.Beta Was this translation helpful? Give feedback.
All reactions