JSX types: EventHandler['currentTarget'] is over-broad #2605
Unanswered
jamesarosen
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
@jamesarosen You are on the right track. If Your In short: yes, replacing those keys before re-adding stricter ones is a sound direction. Source: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
jsx.d.tsdefinesI'm trying to use
EventHandlerin user-land to define types for a Custom Element:But
CustomEventdoesn't specify whethercurrentTargetexists one way or the other, socurrentTargetisany & MyTextarea, which isany.Instead, I believe the type should be
Am I on the right path?
See shoelace-style/webawesome#2129
Beta Was this translation helpful? Give feedback.
All reactions