diff options
Diffstat (limited to 'packages/main/src/stores/ServiceSettings.ts')
-rw-r--r-- | packages/main/src/stores/ServiceSettings.ts | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/packages/main/src/stores/ServiceSettings.ts b/packages/main/src/stores/ServiceSettings.ts index 960de9b..e6f48c6 100644 --- a/packages/main/src/stores/ServiceSettings.ts +++ b/packages/main/src/stores/ServiceSettings.ts | |||
@@ -18,18 +18,24 @@ | |||
18 | * SPDX-License-Identifier: AGPL-3.0-only | 18 | * SPDX-License-Identifier: AGPL-3.0-only |
19 | */ | 19 | */ |
20 | 20 | ||
21 | import { serviceSettings as originalServiceSettings } from '@sophie/shared'; | 21 | import { ServiceSettings as ServiceSettingsBase } from '@sophie/shared'; |
22 | import { Instance, types } from 'mobx-state-tree'; | 22 | import { Instance, types } from 'mobx-state-tree'; |
23 | 23 | ||
24 | import overrideProps from '../utils/overrideProps'; | 24 | import overrideProps from '../utils/overrideProps'; |
25 | 25 | ||
26 | import { profile } from './Profile'; | 26 | import Profile from './Profile'; |
27 | 27 | ||
28 | export const serviceSettings = overrideProps(originalServiceSettings, { | 28 | const ServiceSettings = overrideProps(ServiceSettingsBase, { |
29 | profile: types.reference(profile), | 29 | profile: types.reference(Profile), |
30 | }); | 30 | }); |
31 | 31 | ||
32 | export interface ServiceSettings extends Instance<typeof serviceSettings> {} | 32 | /* |
33 | eslint-disable-next-line @typescript-eslint/no-redeclare -- | ||
34 | Intentionally naming the type the same as the store definition. | ||
35 | */ | ||
36 | interface ServiceSettings extends Instance<typeof ServiceSettings> {} | ||
37 | |||
38 | export default ServiceSettings; | ||
33 | 39 | ||
34 | export type { | 40 | export type { |
35 | ServiceSettingsSnapshotIn, | 41 | ServiceSettingsSnapshotIn, |