We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cead866 commit 239dde8Copy full SHA for 239dde8
src/compiler/checker.ts
@@ -1291,7 +1291,7 @@ namespace ts {
1291
isInExternalModule = true;
1292
// falls through
1293
case SyntaxKind.ModuleDeclaration:
1294
- const moduleExports = getSymbolOfNode(location as ModuleDeclaration).exports!;
+ const moduleExports = getSymbolOfNode(location as SourceFile | ModuleDeclaration).exports!;
1295
if (location.kind === SyntaxKind.SourceFile || isAmbientModule(location)) {
1296
1297
// It's an external module. First see if the module has an export default and if the local
0 commit comments