(obj: any)
| 41 | } |
| 42 | |
| 43 | export function isForwardOrMemoForward(obj: any): boolean { |
| 44 | if (!obj || !obj?.$$typeof) { |
| 45 | return false; |
| 46 | } |
| 47 | return ( |
| 48 | // React.forwardRef(..) |
| 49 | isForwardRefType(obj) || |
| 50 | // React.memo(React.forwardRef(..)) |
| 51 | (isMemoType(obj) && isForwardRefType(obj.type)) |
| 52 | ); |
| 53 | } |
| 54 | |
| 55 | export function isReactComponent(obj: any): obj is ComponentType<any> { |
| 56 | if (!obj) { |
no test coverage detected
searching dependent graphs…