From ef4595c706cbd18b65b587a83cc21121bec79932 Mon Sep 17 00:00:00 2001 From: Luke Date: Sat, 17 Sep 2022 14:21:28 +0200 Subject: [PATCH] fix(package): set notification types as optional --- package/client/resource/interface/notify.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/client/resource/interface/notify.ts b/package/client/resource/interface/notify.ts index ba6a11f..66714be 100644 --- a/package/client/resource/interface/notify.ts +++ b/package/client/resource/interface/notify.ts @@ -10,7 +10,7 @@ interface NotifyProps { description?: string; duration?: number; position?: NotificationPosition; - type: NotificationType; + type?: NotificationType; style?: CSSProperties; icon?: IconName | [IconPrefix, IconName]; iconColor?: string; @@ -23,7 +23,7 @@ interface DefaultNotifyProps { description?: string; duration?: number; position?: NotificationPosition; - status: 'info' | 'warning' | 'success' | 'error'; + status?: 'info' | 'warning' | 'success' | 'error'; id?: number; }