-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[base-ui] Fix replace array API with ReadonlyArray type #40760
Conversation
KumarNitin19
commented
Jan 23, 2024
•
edited
Loading
edited
- I have followed (at least) the PR section of the contributing guide.
- [typescript] Replace Array API with ReadonlyArray #40750 fixed in this PR.
Netlify deploy previewhttps://deploy-preview-40760--material-ui.netlify.app/ Bundle size reportBundle size will be reported once CircleCI build #641815 finishes. |
@@ -136,8 +136,8 @@ function focusThumb({ | |||
} | |||
|
|||
function areValuesEqual( | |||
newValue: number | Array<number>, | |||
oldValue: number | Array<number>, | |||
newValue: number | Readonly<number> | number[], |
There was a problem hiding this comment.
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.
newValue: number | Readonly<number> | number[], | |
newValue: number | ReadonlyArray<number>, |
There was a problem hiding this comment.
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!
Please see #40754 (comment) |
Closing in favor of #40754 |