mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-16 15:51:35 -05:00
Component commits:7bd2a6eeb7Only normalize intersections that include {}698c3ab770Accept new baselines Co-authored-by: Anders Hejlsberg <andersh@microsoft.com>
This commit is contained in:
@@ -18465,7 +18465,7 @@ namespace ts {
|
||||
if (reduced !== type) {
|
||||
return reduced;
|
||||
}
|
||||
if (type.flags & TypeFlags.Intersection) {
|
||||
if (type.flags & TypeFlags.Intersection && some((type as IntersectionType).types, isEmptyAnonymousObjectType)) {
|
||||
const normalizedTypes = sameMap(type.types, t => getNormalizedType(t, writing));
|
||||
if (normalizedTypes !== type.types) {
|
||||
return getIntersectionType(normalizedTypes);
|
||||
|
||||
Reference in New Issue
Block a user