1 import Store from 'electron-store';
3 import type { ClipboardStoreProperties, DesktopTheme } from '@proton/pass/types';
5 import type { StoreInstallProperties } from './lib/install-info';
6 import type { WindowConfigStoreProperties } from './lib/window-management';
7 import type { StoreUpdateProperties } from './update';
10 installInfo?: StoreInstallProperties;
11 update?: StoreUpdateProperties;
12 clipboard?: ClipboardStoreProperties;
14 windowConfig?: WindowConfigStoreProperties;
17 export const store = new Store<RootStore>({
18 accessPropertiesByDotNotation: false,
19 clearInvalidConfig: true,
22 const distribution = s.get('update.distribution');
23 if (!distribution || typeof distribution !== 'number') return;
24 s.set('update', { distribution });