Type for event param on click event #768
Unanswered
dorklord23
asked this question in
Q&A
Replies: 1 comment 1 reply
-
You can |
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
-
Hi, guys
I am a beginner in Typescript and setting type for variables in TS after years of gotten used in JS has been quite a tedious yet fun experience. I added an
onClick
event to a primitive component but TS throws an errorParameter 'e' implicitly has an 'any' type
.What is the type for param
e
inonClick
event, then?thank you very much
Beta Was this translation helpful? Give feedback.
All reactions