Skip to content

Commit 60aaf1b

Browse files
authored
Fix: ForwardRefComponent: default generic type
1 parent d8dbddb commit 60aaf1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export type ElementComponent<H extends Elements> = React.ReactHTML[H] extends Re
77
// ReturnType<React.forwardRef>
88
export type ForwardRefComponent<
99
T extends Elements,
10-
P extends React.PropsWithChildren<ClassName> = React.PropsWithChildren<ClassName>
10+
P extends React.PropsWithChildren<ClassName> = React.ComponentProps<T>
1111
> = React.ForwardRefExoticComponent<React.PropsWithoutRef<P> & React.RefAttributes<ElementComponent<T>>>;
1212

1313
// Class Props

0 commit comments

Comments
 (0)