Resolve export= module members

This commit is contained in:
Bill Ticehurst
2016-10-10 22:40:03 -07:00
parent 3b0515fd8b
commit 49fd35da33
2 changed files with 191 additions and 1 deletions

View File

@@ -1465,6 +1465,10 @@ namespace ts {
function getExportsForModule(moduleSymbol: Symbol): SymbolTable {
const visitedSymbols: Symbol[] = [];
// A module defined by an 'export=' consists on one export that needs to be resolved
moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);
return visit(moduleSymbol) || moduleSymbol.exports;
// The ES6 spec permits export * declarations in a module to circularly reference the module itself. For example,