From 17eb853030f30331a3e089e1edd3074fe1ef0102 Mon Sep 17 00:00:00 2001 From: Esteban Borai Date: Sat, 6 May 2023 17:17:52 -0400 Subject: [PATCH] fix: export `NotificationKind` as `enum` over `type` --- src/lib/index.ts | 8 +++++--- src/lib/stores/notifications.ts | 6 +++--- 2 files changed, 8 insertions(+), 6 deletions(-) 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 = {