From e89aa2bd618d009950bdda7401e2a902527d05a6 Mon Sep 17 00:00:00 2001 From: lisonge Date: Mon, 5 Aug 2024 11:25:27 +0800 Subject: [PATCH] perf: storage type --- src/utils/storage.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/utils/storage.ts b/src/utils/storage.ts index 31bdd63..2c10cb8 100644 --- a/src/utils/storage.ts +++ b/src/utils/storage.ts @@ -184,12 +184,13 @@ export const importStorage = useReactiveStorage< }); return obj; }); - -export const settingsStorage = useReactiveStorage<{ +export interface SettingsState { autoUploadImport: boolean; ignoreUploadWarn: boolean; ignoreWasmWarn: boolean; -}>('settings', { +} + +export const settingsStorage = useReactiveStorage('settings', { autoUploadImport: false, ignoreUploadWarn: false, ignoreWasmWarn: false,