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