-
-
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
[material-ui][Box] Add missing component
to BoxProps
type
#44643
Conversation
Netlify deploy previewhttps://deploy-preview-44643--material-ui.netlify.app/ Bundle size report |
4f8944e
to
947ab93
Compare
@@ -39,3 +39,5 @@ function ColorTest() { | |||
sx={(theme) => ({ backgroundColor: theme.vars.palette.background.default })} | |||
/>; | |||
} | |||
|
|||
expectType<SystemBoxProps['component'], MaterialBoxProps['component']>; |
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.
expectType
is function know? for e.g, this passes expectType<null,undefined>
but this doesn't expectType<null,undefined>()
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.
In this case I'm using it to check types, so there's no value to be provided.
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.
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.
Closes #43955
This was an oversight of #43384, as the System
BoxProps
had thecomponent
property, but Material UI's didn't. They should be equivalent. I added a test for it as well.