File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -8250,7 +8250,7 @@ namespace ts {
8250
8250
return includes;
8251
8251
}
8252
8252
8253
- function removeRedundantPrimtiveTypes (types: Type[], includes: TypeFlags) {
8253
+ function removeRedundantPrimitiveTypes (types: Type[], includes: TypeFlags) {
8254
8254
let i = types.length;
8255
8255
while (i > 0) {
8256
8256
i--;
@@ -8264,6 +8264,7 @@ namespace ts {
8264
8264
}
8265
8265
}
8266
8266
}
8267
+
8267
8268
// We normalize combinations of intersection and union types based on the distributive property of the '&'
8268
8269
// operator. Specifically, because X & (A | B) is equivalent to X & A | X & B, we can transform intersection
8269
8270
// types with union type constituents into equivalent union types with intersection type constituents and
@@ -8289,7 +8290,7 @@ namespace ts {
8289
8290
if (includes & TypeFlags.String && includes & TypeFlags.StringLiteral ||
8290
8291
includes & TypeFlags.Number && includes & TypeFlags.NumberLiteral ||
8291
8292
includes & TypeFlags.ESSymbol && includes & TypeFlags.UniqueESSymbol) {
8292
- removeRedundantPrimtiveTypes (typeSet, includes);
8293
+ removeRedundantPrimitiveTypes (typeSet, includes);
8293
8294
}
8294
8295
if (includes & TypeFlags.EmptyObject && !(includes & TypeFlags.Object)) {
8295
8296
typeSet.push(emptyObjectType);
You can’t perform that action at this time.
0 commit comments