-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
Typedefiniton problem when we use mixins #131
Comments
Hi @hugo4711, I read:
But in the current version of csstype, "revert-layer" is assignable to I think you should try reinstalling your dependencies (delete your "resolutions": {
"csstype": "3.1.1"
}, Let me know if it fixes the issue |
We have tried adding the resolution for cssytpes unfortunately this leads to a different error:
|
I'm sorry, this error is annoying indeed but the problem comes from MUI:
If the type definition was: It would fix the error: @mnajdova would you be open to a PR that changes this type definition from interface inheritance to type intersection? I am not sure of the consequences it would have... @mdismer I'm sorry but for now all I can suggest is: - toolbar: theme.mixins.toolbar
+ toolbar: theme.mixins.toolbar as any Best regards |
We are getting obscure typescript errors when using mixins and we have no idea how to fix this:
Please see the following code, where we mix in theme.mixins.toolbar
This gives the following error:
The text was updated successfully, but these errors were encountered: