From 4b80a6b5c84f130cea16a77e659d877b22ba3cc2 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 17 Dec 2023 18:17:50 -0800 Subject: fix(settings): type of value --- src/stores/settings.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/stores/settings.ts b/src/stores/settings.ts index bca00903..7f59508a 100644 --- a/src/stores/settings.ts +++ b/src/stores/settings.ts @@ -29,8 +29,6 @@ export interface Settings { display24HourTime: boolean; displayCountdownRightAligned: boolean; displayNativeCountdown: boolean; - // eslint-disable-next-line @typescript-eslint/no-explicit-any - [key: string]: any; } const defaultSettings: Settings = { @@ -92,7 +90,8 @@ const createStore = () => { for (const key of keys) if (!settingsKeys.includes(key)) - updatedSettings[key] = defaultSettings[key as keyof Settings]; + (updatedSettings[key as keyof Settings] as unknown) = + defaultSettings[key as keyof Settings]; if (browser) localStorage.setItem('settings', JSON.stringify(updatedSettings)); -- cgit v1.2.3