chore(doc-gen): formatting

This commit is contained in:
Peter Bacon Darwin 2015-05-17 22:01:03 +01:00
parent 4b34ef9036
commit 33f5aafd6c
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ module.exports = function readTypeScriptModules(tsParser, readFilesProcessor, mo
function getReturnType(typeChecker, symbol) {
var declaration = symbol.valueDeclaration || symbol.declarations[0];
var sourceFile = ts.getSourceFileOfNode(declaration);
if(declaration.type) {
if (declaration.type) {
return getText(sourceFile, declaration.type).trim();
}
}