diff options
Diffstat (limited to 'src')
| -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>({}); |