react-docgen-typescript
Advanced tools
Comparing version
@@ -401,2 +401,9 @@ "use strict"; | ||
}); | ||
it('should parse jsdocs with the @default tag and no description', function () { | ||
testUtils_1.check('StatelessWithDefaultOnlyJsDoc', { | ||
StatelessWithDefaultOnlyJsDoc: { | ||
myProp: { defaultValue: 'hello', description: '', type: 'string' } | ||
} | ||
}); | ||
}); | ||
it('should parse functional component component defined as function', function () { | ||
@@ -403,0 +410,0 @@ testUtils_1.check('FunctionDeclaration', { |
@@ -340,3 +340,3 @@ "use strict"; | ||
var comment = this.getFullJsDocComment(symbol); | ||
if (comment.fullComment) { | ||
if (comment.fullComment || comment.tags.default) { | ||
return comment; | ||
@@ -348,3 +348,3 @@ } | ||
.map(function (x) { return _this.getFullJsDocComment(x); }) | ||
.filter(function (x) { return !!x.fullComment; }); | ||
.filter(function (x) { return !!x.fullComment || !!comment.tags.default; }); | ||
if (commentsOnRootSymbols.length) { | ||
@@ -351,0 +351,0 @@ return commentsOnRootSymbols[0]; |
{ | ||
"name": "react-docgen-typescript", | ||
"version": "1.16.0", | ||
"version": "1.16.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/styleguidist/react-docgen-typescript/", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
156972
0.4%2075
0.34%