From 1d7afd4c53e20d042ee990889bea1b790f3ed150 Mon Sep 17 00:00:00 2001 From: FrameMuse Date: Mon, 17 Apr 2023 14:19:35 +0300 Subject: [PATCH 1/2] fix #73 --- src/types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 775d49e..026f6a6 100644 --- a/src/types.ts +++ b/src/types.ts @@ -16,7 +16,7 @@ copies or substantial portions of the Software. */ -import { ReactElement } from "react" +import { Component, ReactElement } from "react" import { HasRequiredKeys } from "type-fest" /** @@ -26,7 +26,9 @@ export type ModalComponent

= // Function Component | ((props: P) => ReactElement | null) | (() => ReactElement | null) - + // Class Component + | (new (props: P) => Component) + | (new () => Component) export interface ModalParams { /** From 3ab18ffcb33e1157ab961e5751dd90e3eb4d5447 Mon Sep 17 00:00:00 2001 From: FrameMuse Date: Mon, 17 Apr 2023 14:19:41 +0300 Subject: [PATCH 2/2] update coverage --- coverage/clover.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/coverage/clover.xml b/coverage/clover.xml index 1bb65a3..83f0bc8 100644 --- a/coverage/clover.xml +++ b/coverage/clover.xml @@ -1,6 +1,6 @@ - - + +