diff options
| author | Fuwn <[email protected]> | 2026-01-23 20:22:05 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-01-23 20:22:19 -0800 |
| commit | e26b36feade446dfaf4305f1399892a48a99d3e5 (patch) | |
| tree | 4bc10f4fabfad23334bdd0c153d0d537011fd782 | |
| parent | fix(Notification): Align Options interface with Notification type (diff) | |
| download | due.moe-e26b36feade446dfaf4305f1399892a48a99d3e5.tar.xz due.moe-e26b36feade446dfaf4305f1399892a48a99d3e5.zip | |
fix(stores:stateBin): Add typed interface
| -rw-r--r-- | src/stores/stateBin.ts | 9 |
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>({}); |