@@ -6318,7 +6318,7 @@ namespace ts {
63186318 return false;
63196319 }
63206320
6321- /** A type parameter is thisless if its contraint is thisless, or if it has no constraint. */
6321+ /** A type parameter is thisless if its constraint is thisless, or if it has no constraint. */
63226322 function isThislessTypeParameter(node: TypeParameterDeclaration) {
63236323 const constraint = getEffectiveConstraintOfTypeParameter(node);
63246324 return !constraint || isThislessType(constraint);
@@ -10041,10 +10041,10 @@ namespace ts {
1004110041 if (checkType.flags & TypeFlags.Any) {
1004210042 return getUnionType([instantiateType(root.trueType, combinedMapper || mapper), instantiateType(root.falseType, mapper)]);
1004310043 }
10044- // Return falseType for a definitely false extends check. We check an instantations of the two
10044+ // Return falseType for a definitely false extends check. We check an instantiations of the two
1004510045 // types with type parameters mapped to the wildcard type, the most permissive instantiations
1004610046 // possible (the wildcard type is assignable to and from all types). If those are not related,
10047- // then no instatiations will be and we can just return the false branch type.
10047+ // then no instantiations will be and we can just return the false branch type.
1004810048 if (!isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType))) {
1004910049 return instantiateType(root.falseType, mapper);
1005010050 }
@@ -14501,7 +14501,7 @@ namespace ts {
1450114501 // that is _too good_ in projects with complicated constraints (eg, fp-ts). In such cases, if we did not limit ourselves
1450214502 // here, we might produce more valid inferences for types, causing us to do more checks and perform more instantiations
1450314503 // (in addition to the extra stack depth here) which, in turn, can push the already close process over its limit.
14504- // TL;DR: If we ever become generally more memory efficienct (or our resource budget ever increases), we should just
14504+ // TL;DR: If we ever become generally more memory efficient (or our resource budget ever increases), we should just
1450514505 // remove this `allowComplexConstraintInference` flag.
1450614506 allowComplexConstraintInference = false;
1450714507 return inferFromTypes(apparentSource, target);
@@ -18938,7 +18938,7 @@ namespace ts {
1893818938 // if jsx emit was not react as there wont be error being emitted
1893918939 reactSym.isReferenced = SymbolFlags.All;
1894018940
18941- // If react symbol is alias, mark it as refereced
18941+ // If react symbol is alias, mark it as referenced
1894218942 if (reactSym.flags & SymbolFlags.Alias && !isConstEnumOrConstEnumOnlyModule(resolveAlias(reactSym))) {
1894318943 markAliasSymbolAsReferenced(reactSym);
1894418944 }
@@ -28330,7 +28330,7 @@ namespace ts {
2833028330 throwIfNonDiagnosticsProducing();
2833128331 if (sourceFile) {
2833228332 // Some global diagnostics are deferred until they are needed and
28333- // may not be reported in the firt call to getGlobalDiagnostics.
28333+ // may not be reported in the first call to getGlobalDiagnostics.
2833428334 // We should catch these changes and report them.
2833528335 const previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics();
2833628336 const previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length;
0 commit comments