Migrating from 'TransitionProps' to 'slotProps.transition' cause TS type inference error #45210
Labels
bug 🐛
Something doesn't work
component: dialog
This is the name of the generic UI component, not the React module!
typescript
Steps to reproduce
Current behavior
I have a very bad TS error in my local VSCode instance:
TS error
Expected behavior
TypeScript shouldn't complain about types if I convert this code:
To this:
Context
I'm upgrading MUI from v5 to v6.
According to the migration docs
TransitionProps
are deprecated, so I should move toslotProps
:Your environment
npx @mui/envinfo
tsconfig.json
tsconfig.node.json
Search keywords: TransitionProps migration, slotProps transition
The text was updated successfully, but these errors were encountered: