From e26b36feade446dfaf4305f1399892a48a99d3e5 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 23 Jan 2026 20:22:05 -0800 Subject: fix(stores:stateBin): Add typed interface --- src/stores/stateBin.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') 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; +interface StateBin { + dueAnimeListOpen?: boolean; + upcomingAnimeListOpen?: boolean; + dueMangaListOpen?: boolean; + completedAnimeListOpen?: boolean; + completedMangaListOpen?: boolean; + [key: string]: boolean | string | undefined; +} const STORAGE_KEY = 'stateBin'; const baseStore = writable({}); -- cgit v1.2.3