We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f5edce commit 8713531Copy full SHA for 8713531
index.js
@@ -48,14 +48,13 @@ function checkForProptypes(path, paramTypeName) {
48
49
function setParamsTypeDefinitionFromFunctionType(documentation, path) {
50
if (
51
- path.parentPath.node.init &&
+ path.parentPath.node.init &&
52
Array.isArray(path.parentPath.node.init.params) &&
53
path.parentPath.node.init.params.length === 0
54
- )
55
- {
+ ) {
56
return;
57
- }
58
-
+ }
+
59
60
path.node.type === 'ArrowFunctionExpression' &&
61
(
0 commit comments