mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-30 01:04:49 -05:00
Resolve export= module members
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user