File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4597,7 +4597,7 @@ namespace ts {
4597
4597
result.valueDeclaration = declarations[0];
4598
4598
}
4599
4599
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);
4601
4601
return result;
4602
4602
}
4603
4603
@@ -5880,7 +5880,7 @@ namespace ts {
5880
5880
}
5881
5881
5882
5882
/**
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,
5884
5884
* this function should be called in a left folding style, with left = previous result of getSpreadType
5885
5885
* and right = the new element to be spread.
5886
5886
*/
You can’t perform that action at this time.
0 commit comments