Introduction of inferred event types #6831
Kamilczak020
started this conversation in
Ideas
Replies: 1 comment
-
Typed where? In definetely typed? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, inner events are typed with a generic
Event
interface:This means that for Typescript users who want to access properties specific to certain events (example: wheel events'
deltaY
) need to manually cast the event type.After a short browse through the repo, these seem to always be native DOM events, (unless I missed something) which should make this fix even less involving.
NOTE: (I will update this post with possible solutions after work)
Beta Was this translation helpful? Give feedback.
All reactions