Skip to content

Commit 889f0a9

Browse files
committed
chore: fix flow
1 parent ad64da7 commit 889f0a9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/utils/getPropType.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export default function getPropType(path: NodePath): PropTypeDescriptor {
219219
descriptor = { name };
220220
return true;
221221
} else if (propTypes.has(name) && member.argumentsPath) {
222+
// $FlowIssue
222223
descriptor = propTypes.get(name)(member.argumentsPath.get(0));
223224
return true;
224225
}
@@ -233,10 +234,12 @@ export default function getPropType(path: NodePath): PropTypeDescriptor {
233234
t.Identifier.check(node.callee) &&
234235
propTypes.has(node.callee.name)
235236
) {
237+
// $FlowIssue
236238
descriptor = propTypes.get(node.callee.name)(path.get('arguments', 0));
237239
} else {
238240
descriptor = { name: 'custom', raw: printValue(path) };
239241
}
240242
}
243+
// $FlowIssue
241244
return descriptor;
242245
}

0 commit comments

Comments
 (0)