Skip to content

Commit 26bb46c

Browse files
Asignment -> Assignment
1 parent a46844a commit 26bb46c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/compiler/checker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14729,7 +14729,7 @@ namespace ts {
1472914729
const declarationContainer = getControlFlowContainer(declaration);
1473014730
let flowContainer = getControlFlowContainer(node);
1473114731
const isOuterVariable = flowContainer !== declarationContainer;
14732-
const isSpreadDestructuringAsignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);
14732+
const isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);
1473314733
// When the control flow originates in a function expression or arrow function and we are referencing
1473414734
// a const variable or parameter from an outer function, we extend the origin of the control flow
1473514735
// analysis to include the immediately enclosing function.
@@ -14741,7 +14741,7 @@ namespace ts {
1474114741
// We only look for uninitialized variables in strict null checking mode, and only when we can analyze
1474214742
// the entire control flow graph from the variable's declaration (i.e. when the flow container and
1474314743
// declaration container are the same).
14744-
const assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAsignmentTarget ||
14744+
const assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget ||
1474514745
type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & TypeFlags.AnyOrUnknown) !== 0 ||
1474614746
isInTypeQuery(node) || node.parent.kind === SyntaxKind.ExportSpecifier) ||
1474714747
node.parent.kind === SyntaxKind.NonNullExpression ||

0 commit comments

Comments
 (0)