@cnamts/vue-dot
Version:
Implementation of our Design System for the French Health Insurance
19 lines (15 loc) • 437 B
TypeScript
export type NotificationTypes = 'success' | 'error' | 'info' | 'warning';
export interface NotificationObj {
type: NotificationTypes;
message: string;
icon?: string;
ref?: string;
}
export interface NotificationState {
notification: NotificationObj | null;
}
export interface NotificationModule {
addNotification: (notification: NotificationObj) => void;
clearNotification: () => void;
notification: NotificationObj | null;
}