Skip to content

Commit

Permalink
perf: storage type
Browse files Browse the repository at this point in the history
  • Loading branch information
lisonge committed Aug 5, 2024
1 parent f3d8d60 commit e89aa2b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/utils/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SettingsState>('settings', {
autoUploadImport: false,
ignoreUploadWarn: false,
ignoreWasmWarn: false,
Expand Down

0 comments on commit e89aa2b

Please sign in to comment.