From e64d51a3e63d15cf918721b6ceab6d13fd3d12d2 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Sat, 10 Aug 2019 10:46:42 +0530 Subject: [PATCH] Modify util.isConstructorHtmlLike - Allow null typeas input --- src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 52e90b7..0040db7 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -30,7 +30,7 @@ function isNodeComponentClass( } function isConstructorHtmlLike( - ctr: React.ElementType + ctr: React.ElementType | null ): ctr is Exclude { if (typeof ctr === "string" || ctr === null) { return true;