fix(package): set notification types as optional

This commit is contained in:
Luke
2022-09-17 14:21:28 +02:00
parent ea40c9c8d5
commit ef4595c706

View File

@@ -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;
}