Skip to content

Use UnionOmit for mixThemeWithProps to distribute unions #8

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

Merged
merged 1 commit into from
Jun 9, 2021

Conversation

chbdetta
Copy link
Contributor

@chbdetta chbdetta commented Jun 9, 2021

The TS built-in Omit does not distribute over unions but sometimes props can be discriminated unions so we need a version of Omit that distribute over unions.

see microsoft/TypeScript#28339

@klimashkin klimashkin merged commit cd1b895 into klimashkin:master Jun 9, 2021
@klimashkin
Copy link
Owner

Released in 2.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants