(obj: any)
| 16 | } |
| 17 | |
| 18 | export function acceptsRef(obj: any): boolean { |
| 19 | if (!obj) { |
| 20 | return false; |
| 21 | } |
| 22 | if (obj?.prototype?.isReactComponent || isForwardOrMemoForward(obj)) { |
| 23 | return true; |
| 24 | } |
| 25 | |
| 26 | return false; |
| 27 | } |
| 28 | |
| 29 | export function isForwardRefType(obj: any): boolean { |
| 30 | if (!obj || !obj?.$$typeof) { |
no test coverage detected
searching dependent graphs…