File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14729,7 +14729,7 @@ namespace ts {
14729
14729
const declarationContainer = getControlFlowContainer(declaration);
14730
14730
let flowContainer = getControlFlowContainer(node);
14731
14731
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);
14733
14733
// When the control flow originates in a function expression or arrow function and we are referencing
14734
14734
// a const variable or parameter from an outer function, we extend the origin of the control flow
14735
14735
// analysis to include the immediately enclosing function.
@@ -14741,7 +14741,7 @@ namespace ts {
14741
14741
// We only look for uninitialized variables in strict null checking mode, and only when we can analyze
14742
14742
// the entire control flow graph from the variable's declaration (i.e. when the flow container and
14743
14743
// declaration container are the same).
14744
- const assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAsignmentTarget ||
14744
+ const assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget ||
14745
14745
type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & TypeFlags.AnyOrUnknown) !== 0 ||
14746
14746
isInTypeQuery(node) || node.parent.kind === SyntaxKind.ExportSpecifier) ||
14747
14747
node.parent.kind === SyntaxKind.NonNullExpression ||
You can’t perform that action at this time.
0 commit comments