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 066bb16 commit e76c96cCopy full SHA for e76c96c
src/compiler/checker.ts
@@ -737,7 +737,8 @@ namespace ts {
737
const useFile = getSourceFileOfNode(usage);
738
if (declarationFile !== useFile) {
739
if ((modulekind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator)) ||
740
- (!compilerOptions.outFile && !compilerOptions.out)) {
+ (!compilerOptions.outFile && !compilerOptions.out) ||
741
+ isInAmbientContext(declaration)) {
742
// nodes are in different files and order cannot be determined
743
return true;
744
}
0 commit comments