Skip to content
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

[Select][base] Fix type issues that appeared with TS 4.8 #34132

Merged
merged 1 commit into from Aug 30, 2022

Conversation

michaldudak
Copy link
Member

@michaldudak michaldudak commented Aug 30, 2022

TypeScript 4.8 introduced stricter type checks for generics (https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#unconstrained-generics-no-longer-assignable-to). This causes issues in our codebase.

This PR addresses a part of the problem that affects MUI Base. There are a few issues in other packages that prevent us from updating the TS version globally. They will be fixed in a separate PR.

Fixes #34126

@michaldudak michaldudak added component: select This is the name of the generic UI component, not the React module! typescript package: base-ui Specific to @mui/base labels Aug 30, 2022
@mui-bot
Copy link

mui-bot commented Aug 30, 2022

No bundle size changes

Generated by 🚫 dangerJS against 6ca480b

Copy link
Member

@siriwatknp siriwatknp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Good to know!

@michaldudak michaldudak merged commit 67073cc into mui:master Aug 30, 2022
@michaldudak michaldudak deleted the iss/34126-select-ts-fixes branch August 30, 2022 19:13
@arunmmanoharan
Copy link

@michaldudak @siriwatknp Is there a version update to the package so we can pull in the latest or should I just delete my node_modules folder and reinstall again?

@siriwatknp
Copy link
Member

@a2441918 It will be released next week.

daniel-rabe pushed a commit to daniel-rabe/material-ui that referenced this pull request Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: select This is the name of the generic UI component, not the React module! package: base-ui Specific to @mui/base typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Select][base] Type Error in MultiSelectUnstyled.types.d.ts
4 participants