From db5486a347e99cc39d774d39cc0f2276204fa285 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Sun, 17 May 2015 22:13:06 +0100 Subject: [PATCH] chore(doc-gen): use actual TypeScript SymbolFlags enum rather than magic number --- docs/dgeni-package/services/tsParser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/dgeni-package/services/tsParser.js b/docs/dgeni-package/services/tsParser.js index ace2e746d1..70bd7b6bea 100644 --- a/docs/dgeni-package/services/tsParser.js +++ b/docs/dgeni-package/services/tsParser.js @@ -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);