From a7dd2a031bbf7f8f3b0f3ace04cb3394f34276f6 Mon Sep 17 00:00:00 2001 From: Piotr Witasik <55193208+PdoubleU@users.noreply.github.com> Date: Thu, 4 Apr 2024 12:38:24 +0200 Subject: [PATCH] fix: no children prop (types) - followup (#262) * improve types for NotificationsProvider to add backward compatibility for react 17 and @types/react 17 --- src/types.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/types.ts b/src/types.ts index 36537415..074d4b51 100644 --- a/src/types.ts +++ b/src/types.ts @@ -57,8 +57,10 @@ export type UseNotification = () => Emmiter export type CreateNotificationsReturnType = { useNotifications: UseNotification - NotificationsProvider: React.FC - ModalNotificationsProvider: React.FC> + NotificationsProvider: React.FC>> + ModalNotificationsProvider: React.FC< + React.PropsWithChildren<{ notificationTopPosition?: number }> + > CustomVariantsTypeHelper: V } & ReturnType>