From c52e21f6be4c0630a83c2de6d82d8ee1a5c19699 Mon Sep 17 00:00:00 2001 From: Anton Zinovyev Date: Mon, 25 Jul 2022 11:01:43 +0300 Subject: [PATCH] fix: explicit children typing (#259) --- src/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index fdfdcfb..18a7bc1 100644 --- a/src/types.ts +++ b/src/types.ts @@ -16,7 +16,9 @@ export type ElementPropsWithElementRef = React.HTMLProps elementRef?: ElementRef; }; -export type ElementRenderer = React.FC>; +export type ElementRenderer = React.FC< + React.PropsWithChildren> +>; export type ElementPropsWithElementRefAndRenderer = React.HTMLProps & { elementRef?: ElementRef;