Skip to content

Typescript: Which type for input's onChange event? #3390

Answered by marvinhagemeister
eekboom asked this question in Q&A
Discussion options

You must be logged in to vote

In newer Preact versions the event type is properly inferred, so the JSX.TargetedEvent<HTMLInputElement, Event> shouldn't be needed anymore.

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@icatalina
Comment options

@rschristian
Comment options

@rauschma
Comment options

@marvinhagemeister
Comment options

Answer selected by rschristian
@rauschma
Comment options

Comment options

You must be logged in to vote
4 replies
@rschristian
Comment options

@ritschwumm
Comment options

@rauschma
Comment options

@ritschwumm
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants