File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments