From 7ac0b51187c1fb257d6693290f0ae52e4cbbde00 Mon Sep 17 00:00:00 2001 From: David Smith Date: Sat, 10 Apr 2021 19:19:22 +0100 Subject: [PATCH] Fix issue with RenderAsComponent type Uses ElementType (https://flow.org/en/docs/react/types/#toc-react-elementtype) to fix #314 --- src/components/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/index.d.ts b/src/components/index.d.ts index 97fd1aff..1b49f71c 100644 --- a/src/components/index.d.ts +++ b/src/components/index.d.ts @@ -164,7 +164,7 @@ type RenderAsComponentProps< export type OmitKeys = Pick>; -export type RenderAsComponent = string | React.ComponentType; +export type RenderAsComponent = React.ElementType; export type ElementProps< TProps,