aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/src/stores/GlobalSettings.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/shared/src/stores/GlobalSettings.ts')
-rw-r--r--packages/shared/src/stores/GlobalSettings.ts18
1 files changed, 12 insertions, 6 deletions
diff --git a/packages/shared/src/stores/GlobalSettings.ts b/packages/shared/src/stores/GlobalSettings.ts
index bd0155a..3a813b8 100644
--- a/packages/shared/src/stores/GlobalSettings.ts
+++ b/packages/shared/src/stores/GlobalSettings.ts
@@ -20,16 +20,22 @@
20 20
21import { Instance, types, SnapshotIn, SnapshotOut } from 'mobx-state-tree'; 21import { Instance, types, SnapshotIn, SnapshotOut } from 'mobx-state-tree';
22 22
23import { themeSource } from '../schemas'; 23import { ThemeSource } from '../schemas';
24 24
25export const globalSettings = types.model('GlobalSettings', { 25const GlobalSettings = types.model('GlobalSettings', {
26 themeSource: types.optional(types.enumeration(themeSource.options), 'system'), 26 themeSource: types.optional(types.enumeration(ThemeSource.options), 'system'),
27}); 27});
28 28
29export interface GlobalSettings extends Instance<typeof globalSettings> {} 29/*
30 eslint-disable-next-line @typescript-eslint/no-redeclare --
31 Intentionally naming the type the same as the store definition.
32*/
33interface GlobalSettings extends Instance<typeof GlobalSettings> {}
34
35export default GlobalSettings;
30 36
31export interface GlobalSettingsSnapshotIn 37export interface GlobalSettingsSnapshotIn
32 extends SnapshotIn<typeof globalSettings> {} 38 extends SnapshotIn<typeof GlobalSettings> {}
33 39
34export interface GlobalSettingsSnapshotOut 40export interface GlobalSettingsSnapshotOut
35 extends SnapshotOut<typeof globalSettings> {} 41 extends SnapshotOut<typeof GlobalSettings> {}