diff --git a/compat/src/index.d.ts b/compat/src/index.d.ts index d9656f95a6..ee7725228c 100644 --- a/compat/src/index.d.ts +++ b/compat/src/index.d.ts @@ -725,6 +725,12 @@ declare namespace React { | MutableRefObject | null; + export type ElementType

= + | { [K in Tag]: P extends JSX.IntrinsicElements[K] ? K : never }[Tag] + | ComponentType

; + + export type ComponentPropsWithoutRef = PropsWithoutRef>; + export type ComponentPropsWithRef< C extends ComponentType | keyof JSXInternal.IntrinsicElements > = C extends new (