From 77ec7e0acbdc05c393849c729fc5270417442f50 Mon Sep 17 00:00:00 2001 From: Joel Date: Tue, 20 Sep 2022 11:50:45 -0300 Subject: [PATCH] optional props --- src/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 9a8d0bb..b183a9b 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -7,7 +7,8 @@ type IWindowProps = { height: number; }; -type IPopupProps = IWindowProps & { +type IPopupProps = Partial> & { + url: string; onClose: () => void; onCode: (code: string, params: URLSearchParams) => void; children: React.ReactNode;