-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Do for unions of many empty-object-spreadables what we did for unions of 2 #42233
Do for unions of many empty-object-spreadables what we did for unions of 2 #42233
Conversation
@typescript-bot test this |
Heya @weswigham, I've started to run the extended test suite on this PR at 35277d9. You can monitor the build here. |
Heya @weswigham, I've started to run the parallelized community code test suite on this PR at 35277d9. You can monitor the build here. |
Heya @weswigham, I've started to run the parallelized Definitely Typed test suite on this PR at 35277d9. You can monitor the build here. |
The user suite test run you requested has finished and failed. I've opened a PR with the baseline diff from master. |
Tests all look good, so I'll merge~ |
… of 2 (microsoft#42233) * Do for unions of many empty-object-spreadables what we did for unions of 2 * Accept baseline
Fixes #41386 by broadening our simplification of a spread of
undefined | A
to be the same asPartial<A>
to also recognize things likeundefined | false | A
as the same asPartial<A>
. Doing this made it obvious that we also needed to fix #41418, thanks to the introduction of more of those spread-synthetic optional properties. So this also contains the fix for that, making this PR require #41921 get merged for it to be reasonable (I have left one failing test which should pass once #41921 is merged).