diff --git a/src/lib/index.ts b/src/lib/index.ts index b226cdb..93f7590 100644 --- a/src/lib/index.ts +++ b/src/lib/index.ts @@ -1,9 +1,11 @@ export { default as NotificationList } from '$lib/components/NotificationList.svelte'; -export { default as notifications } from '$lib/stores/notifications'; +export { + default as notifications, + NotificationKind +} from '$lib/stores/notifications'; export type { Notification, NotificationStoreMethods, - NotificationStore, - NotificationKind + NotificationStore } from '$lib/stores/notifications'; diff --git a/src/lib/stores/notifications.ts b/src/lib/stores/notifications.ts index 791eae2..e9d6aa7 100644 --- a/src/lib/stores/notifications.ts +++ b/src/lib/stores/notifications.ts @@ -15,9 +15,9 @@ export type NotificationStore = { }; export enum NotificationKind { - Failure, - Success, - Warning + Failure = 'Failure', + Success = 'Success', + Warning = 'Warning' } export type Notification = {