fix(doc-gen): ignore resolved symbols that have no declarations
This commit is contained in:
parent
b7ee016000
commit
9f5b6d2353
|
@ -60,6 +60,13 @@ module.exports = function readTypeScriptModules(tsParser, modules, getFileInfo,
|
||||||
|
|
||||||
// If the symbol is an Alias then for most things we want the original resolved symbol
|
// If the symbol is an Alias then for most things we want the original resolved symbol
|
||||||
var resolvedExport = exportSymbol.resolvedSymbol || exportSymbol;
|
var resolvedExport = exportSymbol.resolvedSymbol || exportSymbol;
|
||||||
|
|
||||||
|
// If the resolved symbol contains no declarations then it is invalid
|
||||||
|
// (probably an abstract class)
|
||||||
|
// For the moment we are just going to ignore such exports
|
||||||
|
// TODO: find a way of generating docs for them
|
||||||
|
if (!resolvedExport.declarations) return;
|
||||||
|
|
||||||
var exportDoc = createExportDoc(exportSymbol.name, resolvedExport, moduleDoc, basePath, parseInfo.typeChecker);
|
var exportDoc = createExportDoc(exportSymbol.name, resolvedExport, moduleDoc, basePath, parseInfo.typeChecker);
|
||||||
log.debug('>>>> EXPORT: ' + exportDoc.name + ' (' + exportDoc.docType + ') from ' + moduleDoc.id);
|
log.debug('>>>> EXPORT: ' + exportDoc.name + ' (' + exportDoc.docType + ') from ' + moduleDoc.id);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue