(obj: any)
| 36 | } |
| 37 | |
| 38 | function isComponent(obj: any) { |
| 39 | return ( |
| 40 | typeof obj === 'function' && |
| 41 | (Object.prototype.hasOwnProperty.call(obj, 'propTypes') || |
| 42 | Object.prototype.hasOwnProperty.call(obj, 'defaultProps')) |
| 43 | ); |
| 44 | } |
| 45 | |
| 46 | export default function (filePath: string) { |
| 47 | // const { filePath } = arg; |
no outgoing calls
no test coverage detected
searching dependent graphs…