File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,7 @@ export default function getPropType(path: NodePath): PropTypeDescriptor {
219
219
descriptor = { name } ;
220
220
return true ;
221
221
} else if ( propTypes . has ( name ) && member . argumentsPath ) {
222
+ // $FlowIssue
222
223
descriptor = propTypes . get ( name ) ( member . argumentsPath . get ( 0 ) ) ;
223
224
return true ;
224
225
}
@@ -233,10 +234,12 @@ export default function getPropType(path: NodePath): PropTypeDescriptor {
233
234
t . Identifier . check ( node . callee ) &&
234
235
propTypes . has ( node . callee . name )
235
236
) {
237
+ // $FlowIssue
236
238
descriptor = propTypes . get ( node . callee . name ) ( path . get ( 'arguments' , 0 ) ) ;
237
239
} else {
238
240
descriptor = { name : 'custom' , raw : printValue ( path ) } ;
239
241
}
240
242
}
243
+ // $FlowIssue
241
244
return descriptor ;
242
245
}
You can’t perform that action at this time.
0 commit comments