refactor(#35): typesafe store subscription

This commit is contained in:
OllyNicholass
2024-11-18 23:14:21 +00:00
parent 8fcf650069
commit 1113d509a8
+1 -1
View File
@@ -6,7 +6,7 @@
import type { Toast } from '$lib/types/Shared/Toast';
let localToast: Toast;
const unsubscribeToToastStore = toast.subscribe((value) => {
const unsubscribeToToastStore = toast.subscribe((value: Toast) => {
localToast = value;
});