Skip to content

Commit c52e21f

Browse files
authored
fix: explicit children typing (#259)
1 parent 4bf6b5b commit c52e21f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export type ElementPropsWithElementRef<T = HTMLDivElement> = React.HTMLProps<T>
1616
elementRef?: ElementRef<T>;
1717
};
1818

19-
export type ElementRenderer<T = HTMLDivElement> = React.FC<ElementPropsWithElementRef<T>>;
19+
export type ElementRenderer<T = HTMLDivElement> = React.FC<
20+
React.PropsWithChildren<ElementPropsWithElementRef<T>>
21+
>;
2022

2123
export type ElementPropsWithElementRefAndRenderer<T = HTMLDivElement> = React.HTMLProps<T> & {
2224
elementRef?: ElementRef<T>;

0 commit comments

Comments
 (0)