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; description?: string;
duration?: number; duration?: number;
position?: NotificationPosition; position?: NotificationPosition;
type: NotificationType; type?: NotificationType;
style?: CSSProperties; style?: CSSProperties;
icon?: IconName | [IconPrefix, IconName]; icon?: IconName | [IconPrefix, IconName];
iconColor?: string; iconColor?: string;
@@ -23,7 +23,7 @@ interface DefaultNotifyProps {
description?: string; description?: string;
duration?: number; duration?: number;
position?: NotificationPosition; position?: NotificationPosition;
status: 'info' | 'warning' | 'success' | 'error'; status?: 'info' | 'warning' | 'success' | 'error';
id?: number; id?: number;
} }