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

[core] Port createSpacing to TypeScript #22720

Merged
merged 5 commits into from
Sep 25, 2020
Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Sep 24, 2020

Also adds typings for @material-ui/system#createUnarySpacing.

@eps1lon eps1lon added typescript package: system Specific to @mui/system package: material-ui Specific to @mui/material labels Sep 24, 2020
@mui-pr-bot
Copy link

mui-pr-bot commented Sep 24, 2020

No bundle size changes comparing 4f21dfc...6baf8f2

Generated by 🚫 dangerJS against 6baf8f2

export type SpacingOptions =
| number
| Spacing
| ((abs: number) => number | string)
Copy link
Member Author

Choose a reason for hiding this comment

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

That overload is new. It is used in our tests.

@eps1lon eps1lon marked this pull request as ready for review September 25, 2020 07:54
@eps1lon eps1lon merged commit aab5e11 into mui:next Sep 25, 2020
@eps1lon eps1lon deleted the feat/createSpacing-ts branch September 25, 2020 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: material-ui Specific to @mui/material package: system Specific to @mui/system typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants