Skip to content

Commit 83e95d4

Browse files
committed
Revert unneeded change and comments per PR
1 parent d4a5b08 commit 83e95d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4597,7 +4597,7 @@ namespace ts {
45974597
result.valueDeclaration = declarations[0];
45984598
}
45994599
result.isReadonly = isReadonly;
4600-
result.type = containingType.flags & TypeFlags.Intersection ? getIntersectionType(propTypes) : getUnionType(propTypes);
4600+
result.type = containingType.flags & TypeFlags.Union ? getUnionType(propTypes) : getIntersectionType(propTypes);
46014601
return result;
46024602
}
46034603

@@ -5880,7 +5880,7 @@ namespace ts {
58805880
}
58815881

58825882
/**
5883-
* Since the source of spread types are object literals and type literals, which are not binary,
5883+
* Since the source of spread types are object literals, which are not binary,
58845884
* this function should be called in a left folding style, with left = previous result of getSpreadType
58855885
* and right = the new element to be spread.
58865886
*/

0 commit comments

Comments
 (0)