chore(doc-gen): add `type-alias` export doc type

See #2446
This commit is contained in:
Peter Bacon Darwin 2015-06-10 12:13:06 +01:00
parent ddd5a235c3
commit f2e2ce15cd
1 changed files with 9 additions and 1 deletions

View File

@ -27,8 +27,16 @@ module.exports = function getExportDocType(log) {
if(symbol.flags & ts.SymbolFlags.Property) { if(symbol.flags & ts.SymbolFlags.Property) {
return 'module-property'; return 'module-property';
} }
if(symbol.flags & ts.SymbolFlags.TypeAlias) {
return 'type-alias';
}
log.warn('Unknown symbol type', symbol.name, symbol.flags, symbol.target); log.warn('getExportDocType(): Unknown symbol type', {
symbolName: symbol.name,
symbolType: symbol.flags,
symbolTarget: symbol.target,
file: ts.getSourceFileOfNode(symbol.declarations[0]).fileName
});
return 'unknown'; return 'unknown';
} }