diff options
Diffstat (limited to 'packages/shared/src/stores/ServiceSettings.ts')
-rw-r--r-- | packages/shared/src/stores/ServiceSettings.ts | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/packages/shared/src/stores/ServiceSettings.ts b/packages/shared/src/stores/ServiceSettings.ts index 54cd7eb..6ba1dfa 100644 --- a/packages/shared/src/stores/ServiceSettings.ts +++ b/packages/shared/src/stores/ServiceSettings.ts | |||
@@ -20,19 +20,25 @@ | |||
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 { profile } from './Profile'; | 23 | import Profile from './Profile'; |
24 | 24 | ||
25 | export const serviceSettings = types.model('ServiceSettings', { | 25 | const ServiceSettings = types.model('ServiceSettings', { |
26 | name: types.string, | 26 | name: types.string, |
27 | profile: types.reference(profile), | 27 | profile: types.reference(Profile), |
28 | // TODO: Remove this once recipes are added. | 28 | // TODO: Remove this once recipes are added. |
29 | url: types.string, | 29 | url: types.string, |
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 interface ServiceSettingsSnapshotIn | 40 | export interface ServiceSettingsSnapshotIn |
35 | extends SnapshotIn<typeof serviceSettings> {} | 41 | extends SnapshotIn<typeof ServiceSettings> {} |
36 | 42 | ||
37 | export interface ServiceSettingsSnapshotOut | 43 | export interface ServiceSettingsSnapshotOut |
38 | extends SnapshotOut<typeof serviceSettings> {} | 44 | extends SnapshotOut<typeof ServiceSettings> {} |