@@ -6311,7 +6311,7 @@ namespace ts {
6311
6311
return false;
6312
6312
}
6313
6313
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. */
6315
6315
function isThislessTypeParameter(node: TypeParameterDeclaration) {
6316
6316
const constraint = getEffectiveConstraintOfTypeParameter(node);
6317
6317
return !constraint || isThislessType(constraint);
@@ -10012,10 +10012,10 @@ namespace ts {
10012
10012
if (checkType.flags & TypeFlags.Any) {
10013
10013
return getUnionType([instantiateType(root.trueType, combinedMapper || mapper), instantiateType(root.falseType, mapper)]);
10014
10014
}
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
10016
10016
// types with type parameters mapped to the wildcard type, the most permissive instantiations
10017
10017
// 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.
10019
10019
if (!isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType))) {
10020
10020
return instantiateType(root.falseType, mapper);
10021
10021
}
@@ -14477,7 +14477,7 @@ namespace ts {
14477
14477
// that is _too good_ in projects with complicated constraints (eg, fp-ts). In such cases, if we did not limit ourselves
14478
14478
// here, we might produce more valid inferences for types, causing us to do more checks and perform more instantiations
14479
14479
// (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
14481
14481
// remove this `allowComplexConstraintInference` flag.
14482
14482
allowComplexConstraintInference = false;
14483
14483
return inferFromTypes(apparentSource, target);
@@ -18906,7 +18906,7 @@ namespace ts {
18906
18906
// if jsx emit was not react as there wont be error being emitted
18907
18907
reactSym.isReferenced = SymbolFlags.All;
18908
18908
18909
- // If react symbol is alias, mark it as refereced
18909
+ // If react symbol is alias, mark it as referenced
18910
18910
if (reactSym.flags & SymbolFlags.Alias && !isConstEnumOrConstEnumOnlyModule(resolveAlias(reactSym))) {
18911
18911
markAliasSymbolAsReferenced(reactSym);
18912
18912
}
@@ -28256,7 +28256,7 @@ namespace ts {
28256
28256
throwIfNonDiagnosticsProducing();
28257
28257
if (sourceFile) {
28258
28258
// 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.
28260
28260
// We should catch these changes and report them.
28261
28261
const previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics();
28262
28262
const previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length;
0 commit comments