-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
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
[core] Remove any
from React.ReactElement
types
#42380
Comments
@DiegoAndai I would like to pick this up. |
Hey @fedirjh! Sure 😊, go ahead. There are a lot of occurrences, so please divide the work into smaller PRs if possible. Let me know if you need any help. Thanks in advance. |
@sai6855 I think the only ones left to migrate are the ones missing in https://github.com/sai6855/material-ui/blob/master/packages-internal/test-utils/src/describeConformance.tsx |
these got removed in #44318 know ? |
Oops i missed addressing these, opened PR to remove those #44639 |
Thanks @sai6855! Nice work. With this, we've removed all |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. |
Context
In the upcoming React 19
@types/
packages, the props ofReactElement
now default tounknown
instead ofany
.We have many occurrences that rely on
ReactElement
props beingany
(the previous default). To migrate to React 19, theany
type was specified explicitly in #42346, so we can keep the previous default behavior.This issue
We should gradually remove
any
and rely on the new default,unknown
. This is what this issue is tracking.Search keywords: react 19 types any react element
The text was updated successfully, but these errors were encountered: