Skip to content

Commit b22fb2a

Browse files
committed
allow components using forwardref
1 parent 6ec2ddc commit b22fb2a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ function checkForProptypes(path, paramTypeName) {
4747
}
4848

4949
function setParamsTypeDefinitionFromFunctionType(documentation, path) {
50-
if (path.parentPath.node.init && path.parentPath.node.init.params.length === 0) {
51-
return;
52-
}
53-
5450
if (
5551
path.node.type === 'ArrowFunctionExpression' &&
5652
(

0 commit comments

Comments
 (0)