We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Aliasing react and react-dom to preact/compat and then doing: import { MouseEvent } from 'react'
import { MouseEvent } from 'react'
Typescript complains: Namespace 'React' has no exported member 'MouseEvent'.ts(2694)
Namespace 'React' has no exported member 'MouseEvent'.ts(2694)
I can see MouseEvent doesn't exist in the index file.
Could anyone clarify the proper way to type a mouse event using preact/compat?
The text was updated successfully, but these errors were encountered:
Using import { JSX } from "preact" and then JSX.TargetedMouseEvent
import { JSX } from "preact"
JSX.TargetedMouseEvent
Sorry, something went wrong.
I think we can & should re-export these from compat so that this works. As such, going to reopen.
Successfully merging a pull request may close this issue.
Aliasing react and react-dom to preact/compat and then doing:
import { MouseEvent } from 'react'
Typescript complains:
Namespace 'React' has no exported member 'MouseEvent'.ts(2694)
I can see MouseEvent doesn't exist in the index file.
Could anyone clarify the proper way to type a mouse event using preact/compat?
The text was updated successfully, but these errors were encountered: