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

[base-ui] Fix replace array API with ReadonlyArray type #40760

Conversation

KumarNitin19
Copy link
Contributor

@KumarNitin19 KumarNitin19 commented Jan 23, 2024

@mui-bot
Copy link

mui-bot commented Jan 23, 2024

Netlify deploy preview

https://deploy-preview-40760--material-ui.netlify.app/

Bundle size report

Bundle size will be reported once CircleCI build #641815 finishes.

Generated by 🚫 dangerJS against 9288f82

@zannager zannager added the package: base-ui Specific to @mui/base label Jan 23, 2024
@@ -136,8 +136,8 @@ function focusThumb({
}

function areValuesEqual(
newValue: number | Array<number>,
oldValue: number | Array<number>,
newValue: number | Readonly<number> | number[],
Copy link
Member

Choose a reason for hiding this comment

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

Readonly<number> doesn't make much sense. The point of the issue was to convert arrays into ReadonlyArrays throughout the codebase.

Suggested change
newValue: number | Readonly<number> | number[],
newValue: number | ReadonlyArray<number>,

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@michaldudak I have changed ReadOnly with ReadOnlyArray, please check.
Thanks!

@danilo-leal danilo-leal changed the title [Mui-Base] Fix replace array api with readonlyarray type [base-ui] Fix replace array API with ReadonlyArray type Jan 24, 2024
@ZeeshanTamboli
Copy link
Member

Please see #40754 (comment)

@ZeeshanTamboli
Copy link
Member

Closing in favor of #40754

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: base-ui Specific to @mui/base typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants