Skip to content
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] TypeScript accepts arbitrary props on Root parts #622

Closed
vladmoroz opened this issue Sep 16, 2024 · 1 comment · Fixed by #705
Closed

[core] TypeScript accepts arbitrary props on Root parts #622

vladmoroz opened this issue Sep 16, 2024 · 1 comment · Fixed by #705
Assignees

Comments

@vladmoroz
Copy link
Contributor

vladmoroz commented Sep 16, 2024

Steps to reproduce

You can put any random prop on a Root part and TS won't complain:

image

Link:
https://codesandbox.io/p/sandbox/still-resonance-forked-trlcj2?file=%2Fsrc%2FApp.tsx%3A14%2C11

Current behavior

No response

Expected behavior

No response

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: root, props, ts, typescript

Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

@github-actions github-actions bot removed the status: waiting for maintainer These issues haven't been looked at yet by a maintainer label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants