chore(doc-gen): use actual TypeScript SymbolFlags enum rather than magic number

This commit is contained in:
Peter Bacon Darwin 2015-05-17 22:13:06 +01:00
parent b9b58f7ed9
commit db5486a347
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ module.exports = function tsParser(createCompilerHost, log) {
// by the compiler/binder, it seems that explicit imports (e.g. `export {SomeClass} from 'some/module'`)
// do not so we have to do a little work.
tsModule.exportArray.forEach(function(moduleExport) {
if (moduleExport.flags & 8388608 /* Alias */) {
if (moduleExport.flags & ts.SymbolFlags.Alias) {
// To maintain the alias information (particularly the alias name)
// we just attach the original "resolved" symbol to the alias symbol
moduleExport.resolvedSymbol = typeChecker.getAliasedSymbol(moduleExport);