mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 04:43:37 -05:00
No need for method to get the exportedModulesFromDeclarationEmit
This commit is contained in:
@@ -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*/
|
||||
|
||||
Reference in New Issue
Block a user