diff options
Diffstat (limited to 'packages/shared/src')
-rw-r--r-- | packages/shared/src/index.ts | 18 | ||||
-rw-r--r-- | packages/shared/src/stores/Config.ts | 7 | ||||
-rw-r--r-- | packages/shared/src/stores/SharedStore.ts | 3 |
3 files changed, 10 insertions, 18 deletions
diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts index 9828ec4..6383f63 100644 --- a/packages/shared/src/index.ts +++ b/packages/shared/src/index.ts | |||
@@ -22,18 +22,14 @@ export type { SophieRenderer } from './contextBridge/SophieRenderer'; | |||
22 | 22 | ||
23 | export { MainToRendererIpcMessage, RendererToMainIpcMessage } from './ipc'; | 23 | export { MainToRendererIpcMessage, RendererToMainIpcMessage } from './ipc'; |
24 | 24 | ||
25 | export type { | 25 | export type { Action, BrowserViewBounds, ThemeSource } from './schemas'; |
26 | Action, | 26 | export { action, browserViewBounds, themeSource } from './schemas'; |
27 | BrowserViewBounds, | ||
28 | ThemeSource, | ||
29 | } from './schemas'; | ||
30 | export { | ||
31 | action, | ||
32 | browserViewBounds, | ||
33 | themeSource, | ||
34 | } from './schemas'; | ||
35 | 27 | ||
36 | export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; | 28 | export type { |
29 | Config, | ||
30 | ConfigSnapshotIn, | ||
31 | ConfigSnapshotOut, | ||
32 | } from './stores/Config'; | ||
37 | export { config } from './stores/Config'; | 33 | export { config } from './stores/Config'; |
38 | 34 | ||
39 | export type { | 35 | export type { |
diff --git a/packages/shared/src/stores/Config.ts b/packages/shared/src/stores/Config.ts index 432945c..1d98a33 100644 --- a/packages/shared/src/stores/Config.ts +++ b/packages/shared/src/stores/Config.ts | |||
@@ -18,12 +18,7 @@ | |||
18 | * SPDX-License-Identifier: AGPL-3.0-only | 18 | * SPDX-License-Identifier: AGPL-3.0-only |
19 | */ | 19 | */ |
20 | 20 | ||
21 | import { | 21 | import { Instance, types, SnapshotIn, SnapshotOut } from 'mobx-state-tree'; |
22 | Instance, | ||
23 | types, | ||
24 | SnapshotIn, | ||
25 | SnapshotOut, | ||
26 | } from 'mobx-state-tree'; | ||
27 | 22 | ||
28 | import { themeSource } from '../schemas'; | 23 | import { themeSource } from '../schemas'; |
29 | 24 | ||
diff --git a/packages/shared/src/stores/SharedStore.ts b/packages/shared/src/stores/SharedStore.ts index c6c3ddc..cb14394 100644 --- a/packages/shared/src/stores/SharedStore.ts +++ b/packages/shared/src/stores/SharedStore.ts | |||
@@ -37,7 +37,8 @@ export interface SharedStore extends Instance<typeof sharedStore> {} | |||
37 | 37 | ||
38 | export interface SharedStoreSnapshotIn extends SnapshotIn<typeof sharedStore> {} | 38 | export interface SharedStoreSnapshotIn extends SnapshotIn<typeof sharedStore> {} |
39 | 39 | ||
40 | export interface SharedStoreSnapshotOut extends SnapshotOut<typeof sharedStore> {} | 40 | export interface SharedStoreSnapshotOut |
41 | extends SnapshotOut<typeof sharedStore> {} | ||
41 | 42 | ||
42 | export interface SharedStoreListener { | 43 | export interface SharedStoreListener { |
43 | onSnapshot(snapshot: SharedStoreSnapshotIn): void; | 44 | onSnapshot(snapshot: SharedStoreSnapshotIn): void; |