File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -10372,7 +10372,7 @@ namespace ts {
10372
10372
// the entire control flow graph from the variable's declaration (i.e. when the flow container and
10373
10373
// declaration container are the same).
10374
10374
const assumeInitialized = isParameter || isOuterVariable ||
10375
- type !== autoType && type !== autoArrayType && (!strictNullChecks || isInTypeQuery(node) || ( type.flags & TypeFlags.Any) !== 0) ||
10375
+ type !== autoType && type !== autoArrayType && (!strictNullChecks || ( type.flags & TypeFlags.Any) !== 0 || isInTypeQuery(node) ) ||
10376
10376
isInAmbientContext(declaration);
10377
10377
const flowType = getFlowTypeOfReference(node, type, assumeInitialized, flowContainer);
10378
10378
// A variable is considered uninitialized when it is possible to analyze the entire control flow graph
You can’t perform that action at this time.
0 commit comments