react-docgen-typescript
Advanced tools
Comparing version
@@ -89,3 +89,7 @@ "use strict"; | ||
exp = type.symbol; | ||
if (exp.getName() === 'StatelessComponent') { | ||
var expName = exp.getName(); | ||
if (expName === 'StatelessComponent' || | ||
expName === 'Stateless' || | ||
expName === 'StyledComponentClass' || | ||
expName === 'FunctionComponent') { | ||
commentSource = this.checker.getAliasedSymbol(commentSource); | ||
@@ -216,6 +220,8 @@ } | ||
params: params, | ||
returns: returnDescription ? { | ||
description: returnDescription, | ||
type: returnType | ||
} : null | ||
returns: returnDescription | ||
? { | ||
description: returnDescription, | ||
type: returnType | ||
} | ||
: null | ||
}); | ||
@@ -551,2 +557,5 @@ }); | ||
exportName === '__function' || | ||
exportName === 'Stateless' || | ||
exportName === 'StyledComponentClass' || | ||
exportName === 'FunctionComponent' || | ||
exportName === 'StatelessComponent') { | ||
@@ -553,0 +562,0 @@ return getDefaultExportForFile(source); |
{ | ||
"name": "react-docgen-typescript", | ||
"version": "1.12.0", | ||
"version": "1.12.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
137299
0.4%1812
0.5%