(type: T)
| 91 | * @publicApi |
| 92 | */ |
| 93 | export function resolveForwardRef<T>(type: T): T { |
| 94 | return isForwardRef(type) ? type() : type; |
| 95 | } |
| 96 | |
| 97 | /** Checks whether a function is wrapped by a `forwardRef`. */ |
| 98 | export function isForwardRef(fn: any): fn is () => any { |
no test coverage detected
searching dependent graphs…