Skip to content

Commit 5a7eb1c

Browse files
committed
Fix typo
1 parent e80b47d commit 5a7eb1c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/compiler/checker.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -8250,7 +8250,7 @@ namespace ts {
82508250
return includes;
82518251
}
82528252

8253-
function removeRedundantPrimtiveTypes(types: Type[], includes: TypeFlags) {
8253+
function removeRedundantPrimitiveTypes(types: Type[], includes: TypeFlags) {
82548254
let i = types.length;
82558255
while (i > 0) {
82568256
i--;
@@ -8264,6 +8264,7 @@ namespace ts {
82648264
}
82658265
}
82668266
}
8267+
82678268
// We normalize combinations of intersection and union types based on the distributive property of the '&'
82688269
// operator. Specifically, because X & (A | B) is equivalent to X & A | X & B, we can transform intersection
82698270
// types with union type constituents into equivalent union types with intersection type constituents and
@@ -8289,7 +8290,7 @@ namespace ts {
82898290
if (includes & TypeFlags.String && includes & TypeFlags.StringLiteral ||
82908291
includes & TypeFlags.Number && includes & TypeFlags.NumberLiteral ||
82918292
includes & TypeFlags.ESSymbol && includes & TypeFlags.UniqueESSymbol) {
8292-
removeRedundantPrimtiveTypes(typeSet, includes);
8293+
removeRedundantPrimitiveTypes(typeSet, includes);
82938294
}
82948295
if (includes & TypeFlags.EmptyObject && !(includes & TypeFlags.Object)) {
82958296
typeSet.push(emptyObjectType);

0 commit comments

Comments
 (0)