Thanks to visit codestin.com
Credit goes to github.com

Skip to content

refactor: extend Overrides for MuiSkeleton #4818

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

Merged
merged 2 commits into from
Oct 31, 2022
Merged

Conversation

jsjoeio
Copy link
Contributor

@jsjoeio jsjoeio commented Oct 31, 2022

Looking at the types provided with @material-ui/core, it is indeed missing MuiSkeleton. I'm not sure why. I found this issue upstream: mui/material-ui#24959

I also tried upgrading the package to the latest - 4.12.4 I believe but that didn't fix it either.

I resorted to extending the Overrides type based on what I saw in the most recent version of the declaration file. This is a temporary fix but opts back in to type safety instead of resorting to @ts-ignore.

Looking at the types provided with `@material-ui/core`, it is indeed
missing `MuiSkeleton`. I'm not sure why. I found this issues upstream: mui/material-ui#24959

I also tried upgrading the package to the latest - 4.12.4 I believe but
that didn't fix it either.

I resorted to extending the `Overrides` type based on what I saw in the
most recent version of the declaration file. This is a temporary fix but
opts back in to type safety instead of resorting to `@ts-ignore`.
@jsjoeio jsjoeio requested a review from BrunoQuaresma October 31, 2022 22:11
@jsjoeio jsjoeio requested a review from a team as a code owner October 31, 2022 22:11
@jsjoeio jsjoeio self-assigned this Oct 31, 2022
@BrunoQuaresma
Copy link
Collaborator

Thx for doing this! New learnings

@jsjoeio
Copy link
Contributor Author

jsjoeio commented Oct 31, 2022

Thx for doing this! New learnings

For me as well! It was a fun little problem to try and fix.

@jsjoeio jsjoeio merged commit 17f5e83 into main Oct 31, 2022
@jsjoeio jsjoeio deleted the jsjoeio/fix-overrides branch October 31, 2022 23:33
@github-actions github-actions bot locked and limited conversation to collaborators Oct 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants