@@ -7594,7 +7594,7 @@ namespace ts {
7594
7594
7595
7595
if (isPropertyDeclaration(declaration) && (noImplicitAny || isInJSFile(declaration))) {
7596
7596
// We have a property declaration with no type annotation or initializer, in noImplicitAny mode or a .js file.
7597
- // Use control flow analysis of this.xxx assignments the constructor to determine the type of the property.
7597
+ // Use control flow analysis of this.xxx assignments in the constructor to determine the type of the property.
7598
7598
const constructor = findConstructorDeclaration(declaration.parent);
7599
7599
const type = constructor ? getFlowTypeInConstructor(declaration.symbol, constructor) :
7600
7600
getEffectiveModifierFlags(declaration) & ModifierFlags.Ambient ? getTypeOfPropertyInBaseClass(declaration.symbol) :
@@ -7619,7 +7619,7 @@ namespace ts {
7619
7619
}
7620
7620
7621
7621
function isConstructorDeclaredProperty(symbol: Symbol) {
7622
- // A propery is considered a constructor declared property when all declaration sites are this.xxx assignments,
7622
+ // A property is considered a constructor declared property when all declaration sites are this.xxx assignments,
7623
7623
// when no declaration sites have JSDoc type annotations, and when at least one declaration site is in the body of
7624
7624
// a class constructor.
7625
7625
if (symbol.valueDeclaration && isBinaryExpression(symbol.valueDeclaration)) {
@@ -10562,7 +10562,7 @@ namespace ts {
10562
10562
// Since getApparentType may return a non-reduced union or intersection type, we need to perform
10563
10563
// type reduction both before and after obtaining the apparent type. For example, given a type parameter
10564
10564
// 'T extends A | B', the type 'T & X' becomes 'A & X | B & X' after obtaining the apparent type, and
10565
- // that type may need futher reduction to remove empty intersections.
10565
+ // that type may need further reduction to remove empty intersections.
10566
10566
return getReducedType(getApparentType(getReducedType(type)));
10567
10567
}
10568
10568
0 commit comments