Skip to content

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