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

[types] Remove CoerceEmptyInterface #19259

Merged
merged 2 commits into from
Jan 15, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Jan 15, 2020

BREAKING: Remove CoerceEmptyInterface from @material-ui/types. We don't need it in any of our packages. If you need it you can introduce it into your app:

/**	
 * Returns an empty object type if T is any, otherwise returns T	
 */	
export type CoerceEmptyInterface<T> = IsAny<T> extends true ? {} : T;

Ref: eps1lon/mui-types-perf#1 (comment)

@mui-pr-bot
Copy link

No bundle size changes comparing c8d9df0...066d883

Generated by 🚫 dangerJS against 066d883

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

Successfully merging this pull request may close these issues.

2 participants