From 70032c03e95e241ea978bbd16ab3e5b7c48ad298 Mon Sep 17 00:00:00 2001 From: twiddler <13364827+twiddler@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:31:19 +0100 Subject: [PATCH 1/2] NotificationData --- packages/@mantine/notifications/src/notifications.store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@mantine/notifications/src/notifications.store.ts b/packages/@mantine/notifications/src/notifications.store.ts index 772c737587d..2337a77d50b 100644 --- a/packages/@mantine/notifications/src/notifications.store.ts +++ b/packages/@mantine/notifications/src/notifications.store.ts @@ -10,7 +10,7 @@ export type NotificationPosition = | 'bottom-right' | 'bottom-center'; -export interface NotificationData extends Omit, Record { +export interface NotificationData extends Omit, Record<`data-${string}`, any> { /** Notification id, can be used to close or update notification */ id?: string; From 97971bbf9e42ecb6df6208b889f6aa00b52e1371 Mon Sep 17 00:00:00 2001 From: twiddler <13364827+twiddler@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:44:53 +0100 Subject: [PATCH 2/2] prettier --- packages/@mantine/notifications/src/notifications.store.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/@mantine/notifications/src/notifications.store.ts b/packages/@mantine/notifications/src/notifications.store.ts index 2337a77d50b..75d8285a849 100644 --- a/packages/@mantine/notifications/src/notifications.store.ts +++ b/packages/@mantine/notifications/src/notifications.store.ts @@ -10,7 +10,9 @@ export type NotificationPosition = | 'bottom-right' | 'bottom-center'; -export interface NotificationData extends Omit, Record<`data-${string}`, any> { +export interface NotificationData + extends Omit, + Record<`data-${string}`, any> { /** Notification id, can be used to close or update notification */ id?: string;