diff options
Diffstat (limited to 'packages/shared/src/stores/GlobalSettings.ts')
-rw-r--r-- | packages/shared/src/stores/GlobalSettings.ts | 18 |
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 | ||
21 | import { Instance, types, SnapshotIn, SnapshotOut } from 'mobx-state-tree'; | 21 | import { Instance, types, SnapshotIn, SnapshotOut } from 'mobx-state-tree'; |
22 | 22 | ||
23 | import { themeSource } from '../schemas'; | 23 | import { ThemeSource } from '../schemas'; |
24 | 24 | ||
25 | export const globalSettings = types.model('GlobalSettings', { | 25 | const 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 | ||
29 | export 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 | */ | ||
33 | interface GlobalSettings extends Instance<typeof GlobalSettings> {} | ||
34 | |||
35 | export default GlobalSettings; | ||
30 | 36 | ||
31 | export interface GlobalSettingsSnapshotIn | 37 | export interface GlobalSettingsSnapshotIn |
32 | extends SnapshotIn<typeof globalSettings> {} | 38 | extends SnapshotIn<typeof GlobalSettings> {} |
33 | 39 | ||
34 | export interface GlobalSettingsSnapshotOut | 40 | export interface GlobalSettingsSnapshotOut |
35 | extends SnapshotOut<typeof globalSettings> {} | 41 | extends SnapshotOut<typeof GlobalSettings> {} |