@@ -6311,7 +6311,7 @@ namespace ts {
63116311 return false;
63126312 }
63136313
6314- /** A type parameter is thisless if its contraint is thisless, or if it has no constraint. */
6314+ /** A type parameter is thisless if its constraint is thisless, or if it has no constraint. */
63156315 function isThislessTypeParameter(node: TypeParameterDeclaration) {
63166316 const constraint = getEffectiveConstraintOfTypeParameter(node);
63176317 return !constraint || isThislessType(constraint);
@@ -10012,10 +10012,10 @@ namespace ts {
1001210012 if (checkType.flags & TypeFlags.Any) {
1001310013 return getUnionType([instantiateType(root.trueType, combinedMapper || mapper), instantiateType(root.falseType, mapper)]);
1001410014 }
10015- // Return falseType for a definitely false extends check. We check an instantations of the two
10015+ // Return falseType for a definitely false extends check. We check an instantiations of the two
1001610016 // types with type parameters mapped to the wildcard type, the most permissive instantiations
1001710017 // possible (the wildcard type is assignable to and from all types). If those are not related,
10018- // then no instatiations will be and we can just return the false branch type.
10018+ // then no instantiations will be and we can just return the false branch type.
1001910019 if (!isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType))) {
1002010020 return instantiateType(root.falseType, mapper);
1002110021 }
@@ -14477,7 +14477,7 @@ namespace ts {
1447714477 // that is _too good_ in projects with complicated constraints (eg, fp-ts). In such cases, if we did not limit ourselves
1447814478 // here, we might produce more valid inferences for types, causing us to do more checks and perform more instantiations
1447914479 // (in addition to the extra stack depth here) which, in turn, can push the already close process over its limit.
14480- // TL;DR: If we ever become generally more memory efficienct (or our resource budget ever increases), we should just
14480+ // TL;DR: If we ever become generally more memory efficient (or our resource budget ever increases), we should just
1448114481 // remove this `allowComplexConstraintInference` flag.
1448214482 allowComplexConstraintInference = false;
1448314483 return inferFromTypes(apparentSource, target);
@@ -18906,7 +18906,7 @@ namespace ts {
1890618906 // if jsx emit was not react as there wont be error being emitted
1890718907 reactSym.isReferenced = SymbolFlags.All;
1890818908
18909- // If react symbol is alias, mark it as refereced
18909+ // If react symbol is alias, mark it as referenced
1891018910 if (reactSym.flags & SymbolFlags.Alias && !isConstEnumOrConstEnumOnlyModule(resolveAlias(reactSym))) {
1891118911 markAliasSymbolAsReferenced(reactSym);
1891218912 }
@@ -28256,7 +28256,7 @@ namespace ts {
2825628256 throwIfNonDiagnosticsProducing();
2825728257 if (sourceFile) {
2825828258 // Some global diagnostics are deferred until they are needed and
28259- // may not be reported in the firt call to getGlobalDiagnostics.
28259+ // may not be reported in the first call to getGlobalDiagnostics.
2826028260 // We should catch these changes and report them.
2826128261 const previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics();
2826228262 const previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length;
0 commit comments