aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-01-23 20:22:05 -0800
committerFuwn <[email protected]>2026-01-23 20:22:19 -0800
commite26b36feade446dfaf4305f1399892a48a99d3e5 (patch)
tree4bc10f4fabfad23334bdd0c153d0d537011fd782 /src
parentfix(Notification): Align Options interface with Notification type (diff)
downloaddue.moe-e26b36feade446dfaf4305f1399892a48a99d3e5.tar.xz
due.moe-e26b36feade446dfaf4305f1399892a48a99d3e5.zip
fix(stores:stateBin): Add typed interface
Diffstat (limited to 'src')
-rw-r--r--src/stores/stateBin.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/stores/stateBin.ts b/src/stores/stateBin.ts
index 082a07dc..6f46593c 100644
--- a/src/stores/stateBin.ts
+++ b/src/stores/stateBin.ts
@@ -2,7 +2,14 @@ import { browser } from '$app/environment';
import { writable, get, type Writable } from 'svelte/store';
import localforage from 'localforage';
-type StateBin = Record<string, unknown>;
+interface StateBin {
+ dueAnimeListOpen?: boolean;
+ upcomingAnimeListOpen?: boolean;
+ dueMangaListOpen?: boolean;
+ completedAnimeListOpen?: boolean;
+ completedMangaListOpen?: boolean;
+ [key: string]: boolean | string | undefined;
+}
const STORAGE_KEY = 'stateBin';
const baseStore = writable<StateBin>({});