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] Improve the return type of useSlotProps #33279

Merged
merged 1 commit into from Jun 24, 2022

Conversation

michaldudak
Copy link
Member

Make useSlotProps (and the underlying appendOwnerState) aware of the type of element
on which the props should be applied. Based on this, ownerState will either be present
or undefined in the resulting type.

Make useSlotProps (and the underlying appendOwnerState) aware of the type of element
on which the props should be applied. Based on this, ownerState will either be present
or undefined in the resulting type.
@mui-bot
Copy link

mui-bot commented Jun 24, 2022

Details of bundle changes

Generated by 🚫 dangerJS against 89295fe

@michaldudak michaldudak merged commit a7c6ef1 into mui:master Jun 24, 2022
@michaldudak michaldudak deleted the useSlotProps-return-type branch June 24, 2022 09:51
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
package: base-ui Specific to @mui/base typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants