aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-31 02:39:24 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-31 02:45:04 +0100
commitcd7833ce2400c9bb9e4b49c51c326783bfb03b75 (patch)
treede598c72f121bd375dad6e3c6a288fbf57b0f278 /packages/shared
parentbuild: Upgrade to chalk 5.0.0 anyways (diff)
downloadsophie-cd7833ce2400c9bb9e4b49c51c326783bfb03b75.tar.gz
sophie-cd7833ce2400c9bb9e4b49c51c326783bfb03b75.tar.zst
sophie-cd7833ce2400c9bb9e4b49c51c326783bfb03b75.zip
chore: Add import extensions preparing for ts 4.6 nodenext
Diffstat (limited to 'packages/shared')
-rw-r--r--packages/shared/src/contextBridge/SophieRenderer.ts2
-rw-r--r--packages/shared/src/index.ts14
-rw-r--r--packages/shared/src/stores/Config.ts2
-rw-r--r--packages/shared/src/stores/SharedStore.ts2
4 files changed, 10 insertions, 10 deletions
diff --git a/packages/shared/src/contextBridge/SophieRenderer.ts b/packages/shared/src/contextBridge/SophieRenderer.ts
index fc43b6e..285b373 100644
--- a/packages/shared/src/contextBridge/SophieRenderer.ts
+++ b/packages/shared/src/contextBridge/SophieRenderer.ts
@@ -20,7 +20,7 @@
20 20
21import { SharedStoreListener } from '../stores/SharedStore'; 21import { SharedStoreListener } from '../stores/SharedStore';
22 22
23import { Action } from '../schemas'; 23import { Action } from '../schemas.js';
24 24
25export interface SophieRenderer { 25export interface SophieRenderer {
26 onSharedStoreChange(listener: SharedStoreListener): Promise<void>; 26 onSharedStoreChange(listener: SharedStoreListener): Promise<void>;
diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts
index 2f7146c..f0ae5dc 100644
--- a/packages/shared/src/index.ts
+++ b/packages/shared/src/index.ts
@@ -23,26 +23,26 @@ export type { SophieRenderer } from './contextBridge/SophieRenderer';
23export { 23export {
24 MainToRendererIpcMessage, 24 MainToRendererIpcMessage,
25 RendererToMainIpcMessage, 25 RendererToMainIpcMessage,
26} from './ipc'; 26} from './ipc.js';
27 27
28export type { 28export type {
29 Action, 29 Action,
30 BrowserViewBounds, 30 BrowserViewBounds,
31 ThemeSource, 31 ThemeSource,
32} from './schemas'; 32} from './schemas.js';
33export { 33export {
34 action, 34 action,
35 browserViewBounds, 35 browserViewBounds,
36 themeSource, 36 themeSource,
37} from './schemas'; 37} from './schemas.js';
38 38
39export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; 39export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config.js';
40export { config } from './stores/Config'; 40export { config } from './stores/Config.js';
41 41
42export type { 42export type {
43 SharedStore, 43 SharedStore,
44 SharedStoreListener, 44 SharedStoreListener,
45 SharedStoreSnapshotIn, 45 SharedStoreSnapshotIn,
46 SharedStoreSnapshotOut, 46 SharedStoreSnapshotOut,
47} from './stores/SharedStore'; 47} from './stores/SharedStore.js';
48export { sharedStore } from './stores/SharedStore'; 48export { sharedStore } from './stores/SharedStore.js';
diff --git a/packages/shared/src/stores/Config.ts b/packages/shared/src/stores/Config.ts
index 432945c..4b17d3c 100644
--- a/packages/shared/src/stores/Config.ts
+++ b/packages/shared/src/stores/Config.ts
@@ -25,7 +25,7 @@ import {
25 SnapshotOut, 25 SnapshotOut,
26} from 'mobx-state-tree'; 26} from 'mobx-state-tree';
27 27
28import { themeSource } from '../schemas'; 28import { themeSource } from '../schemas.js';
29 29
30export const config = types.model('Config', { 30export const config = types.model('Config', {
31 themeSource: types.optional(types.enumeration(themeSource.options), 'system'), 31 themeSource: types.optional(types.enumeration(themeSource.options), 'system'),
diff --git a/packages/shared/src/stores/SharedStore.ts b/packages/shared/src/stores/SharedStore.ts
index c6c3ddc..8aefcdb 100644
--- a/packages/shared/src/stores/SharedStore.ts
+++ b/packages/shared/src/stores/SharedStore.ts
@@ -26,7 +26,7 @@ import {
26 SnapshotOut, 26 SnapshotOut,
27} from 'mobx-state-tree'; 27} from 'mobx-state-tree';
28 28
29import { config } from './Config'; 29import { config } from './Config.js';
30 30
31export const sharedStore = types.model('SharedStore', { 31export const sharedStore = types.model('SharedStore', {
32 config: types.optional(config, {}), 32 config: types.optional(config, {}),