-
Notifications
You must be signed in to change notification settings - Fork 833
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
[typescript] Fix theme overrides type failing #1873
Conversation
…assName properties
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/mui-org/material-ui-pickers/r71a3z33i |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
@bopfer Awesome, thanks for opening a standalone pull request. It appears that something is wrong with the CI on the pickers repository. If I apply this diff in the main repository: diff --git a/packages/material-ui/src/styles/overrides.d.ts b/packages/material-ui/src/styles/overrides.d.ts
index fe4dab79e..707323f0e 100644
--- a/packages/material-ui/src/styles/overrides.d.ts
+++ b/packages/material-ui/src/styles/overrides.d.ts
@@ -144,7 +144,7 @@ export interface ComponentNameToClassKey {
MuiExpansionPanelDetails: ExpansionPanelDetailsClassKey;
MuiExpansionPanelSummary: ExpansionPanelSummaryClassKey;
MuiFab: FabClassKey;
- MuiFilledInput: FilledInputClassKey;
+ MuiFilledInput?: FilledInputClassKey;
MuiFormControl: FormControlClassKey;
MuiFormControlLabel: FormControlLabelClassKey;
MuiFormGroup: FormGroupClassKey; and run ' is not assignable to type 'string'.
Type 'undefined' is not assignable to type 'string'.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. the same one that was reported on the linked issue: #1858. Do we have any idea on how we could update the CI in the pickers to catch the problem in the first place? It could be interesting to figure out in order to further align pickers with the main repo, I would fear we either introduce regression until them migration is completed and that we have other similar cases like this on in the pickers repository. |
I am not sure why the problem appears – our tests are telling us that everything works fine. Just checked it with up-to-date |
Yeah, I think that there is an issue with how the TypeScript runs in the pickers repository. I came to this conclusion after looking at the behavior on the main repository and the reproduction example. Maybe it has something to do with the options we give to TypeScript here, and how strict we are with the soundness? |
our version is v3.9.3 and everything is as strict as possible. |
Closes #1858