(
component: React.ForwardRefRenderFunction<
any,
RightJoinProps<PropsOf<Component>, Props> & {
as?: As
}
>,
)
| 6 | import { As, ComponentWithAs, PropsOf, RightJoinProps } from "./system.types" |
| 7 | |
| 8 | export function forwardRef<Props extends object, Component extends As>( |
| 9 | component: React.ForwardRefRenderFunction< |
| 10 | any, |
| 11 | RightJoinProps<PropsOf<Component>, Props> & { |
| 12 | as?: As |
| 13 | } |
| 14 | >, |
| 15 | ) { |
| 16 | return (React.forwardRef(component) as unknown) as ComponentWithAs< |
| 17 | Component, |
| 18 | Props |
| 19 | > |
| 20 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…