(component: any)
| 37 | } |
| 38 | |
| 39 | function isClassComponent(component: any) { |
| 40 | return ( |
| 41 | typeof component === 'function' && |
| 42 | (() => { |
| 43 | const proto = Object.getPrototypeOf(component) |
| 44 | return proto.prototype && proto.prototype.isReactComponent |
| 45 | })() |
| 46 | ) |
| 47 | } |
| 48 | |
| 49 | function isExoticComponent(component: any) { |
| 50 | return ( |
no outgoing calls
no test coverage detected
searching dependent graphs…