mirror of
https://github.com/jcreek/SvelteKitSaasBoilerplate.git
synced 2026-07-12 18:43:50 +00:00
refactor(#35): typesafe store subscription
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
import type { Toast } from '$lib/types/Shared/Toast';
|
import type { Toast } from '$lib/types/Shared/Toast';
|
||||||
|
|
||||||
let localToast: Toast;
|
let localToast: Toast;
|
||||||
const unsubscribeToToastStore = toast.subscribe((value) => {
|
const unsubscribeToToastStore = toast.subscribe((value: Toast) => {
|
||||||
localToast = value;
|
localToast = value;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user