Improved union/intersection type inference by ahejlsberg · Pull Request #5738 · microsoft/TypeScript
This PR improves type inference involving source and target sides that are both union or intersection types. When inferring from a type S to a type T, if S and T are both union types or both inters...