mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
No need for method to get the exportedModulesFromDeclarationEmit
This commit is contained in:
parent
50b75e7585
commit
f7bc8e18e8
@ -226,8 +226,7 @@ namespace ts {
|
||||
printSourceFileOrBundle(declarationFilePath, declarationMapPath, declarationTransform.transformed[0], /* bundleInfopath*/ undefined, declarationPrinter, declarationSourceMap);
|
||||
if (emitOnlyDtsFiles && declarationTransform.transformed[0].kind === SyntaxKind.SourceFile) {
|
||||
const sourceFile = declarationTransform.transformed[0] as SourceFile;
|
||||
exportedModulesFromDeclarationEmit = sourceFile.getExportedModulesFromDeclarationEmit &&
|
||||
sourceFile.getExportedModulesFromDeclarationEmit();
|
||||
exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;
|
||||
}
|
||||
}
|
||||
declarationTransform.dispose();
|
||||
|
||||
@ -234,10 +234,10 @@ namespace ts {
|
||||
}
|
||||
const updated = updateSourceFileNode(node, combinedStatements, /*isDeclarationFile*/ true, references, getFileReferencesForUsedTypeReferences(), node.hasNoDefaultLib);
|
||||
if (exportedModuleSpecifiers || exportedModuleSymbolsUsingImportTypeNodes) {
|
||||
updated.getExportedModulesFromDeclarationEmit = () => ({
|
||||
updated.exportedModulesFromDeclarationEmit = {
|
||||
exportedModuleSpecifiers: exportedModuleSpecifiers || emptyArray,
|
||||
exportedModuleSymbolsUsingImportTypeNodes: exportedModuleSymbolsUsingImportTypeNodes || emptyArray
|
||||
});
|
||||
};
|
||||
}
|
||||
return updated;
|
||||
|
||||
|
||||
@ -2625,7 +2625,7 @@ namespace ts {
|
||||
/* @internal */ localJsxNamespace?: __String;
|
||||
/* @internal */ localJsxFactory?: EntityName;
|
||||
|
||||
/*@internal*/ getExportedModulesFromDeclarationEmit?(): ExportedModulesFromDeclarationEmit;
|
||||
/*@internal*/ exportedModulesFromDeclarationEmit?: ExportedModulesFromDeclarationEmit;
|
||||
}
|
||||
|
||||
/*@internal*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user