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 @@ -11807,7 +11807,7 @@ namespace ts {
11807
11807
// the entire control flow graph from the variable's declaration (i.e. when the flow container and
11808
11808
// declaration container are the same).
11809
11809
const assumeInitialized = isParameter || isOuterVariable ||
11810
- type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & TypeFlags.Any) !== 0 || isInTypeQuery(node)) ||
11810
+ type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & TypeFlags.Any) !== 0 || isInTypeQuery(node) || node.parent.kind === SyntaxKind.ExportSpecifier ) ||
11811
11811
isInAmbientContext(declaration);
11812
11812
const initialType = assumeInitialized ? (isParameter ? removeOptionalityFromDeclaredType(type, getRootDeclaration(declaration) as VariableLikeDeclaration) : type) :
11813
11813
type === autoType || type === autoArrayType ? undefinedType :
You can’t perform that action at this time.
0 commit comments