( component: unknown, )
| 27 | } |
| 28 | |
| 29 | function isReactComponent<TProps>( |
| 30 | component: unknown, |
| 31 | ): component is React.ComponentType<TProps> { |
| 32 | return ( |
| 33 | isClassComponent(component) || |
| 34 | typeof component === 'function' || |
| 35 | isExoticComponent(component) |
| 36 | ) |
| 37 | } |
| 38 | |
| 39 | function isClassComponent(component: any) { |
| 40 | return ( |
no test coverage detected