aboutsummaryrefslogtreecommitdiffstats
path: root/packages/shared/src/index.ts
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-26 19:59:04 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-12-26 20:02:08 +0100
commit4ef4306cf401829905f764845ed78ac072fb94b6 (patch)
tree980a91a11cb1ac5f730d72c385e542edd0617d82 /packages/shared/src/index.ts
parentrefactor: Clarify main process architecture (diff)
downloadsophie-4ef4306cf401829905f764845ed78ac072fb94b6.tar.gz
sophie-4ef4306cf401829905f764845ed78ac072fb94b6.tar.zst
sophie-4ef4306cf401829905f764845ed78ac072fb94b6.zip
refactor: Make all stores optional
This reduces boilerplate and helps with config file robustness: if a field is missing from the config file, it will be replaced with its default value.
Diffstat (limited to 'packages/shared/src/index.ts')
-rw-r--r--packages/shared/src/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/shared/src/index.ts b/packages/shared/src/index.ts
index 046d28d..713984e 100644
--- a/packages/shared/src/index.ts
+++ b/packages/shared/src/index.ts
@@ -35,7 +35,7 @@ export {
35} from './schemas'; 35} from './schemas';
36 36
37export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; 37export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config';
38export { config, defaultConfig } from './stores/Config'; 38export { config } from './stores/Config';
39 39
40export type { 40export type {
41 SharedStore, 41 SharedStore,
@@ -43,4 +43,4 @@ export type {
43 SharedStoreSnapshotIn, 43 SharedStoreSnapshotIn,
44 SharedStoreSnapshotOut, 44 SharedStoreSnapshotOut,
45} from './stores/SharedStore'; 45} from './stores/SharedStore';
46export { emptySharedStore, sharedStore } from './stores/SharedStore'; 46export { sharedStore } from './stores/SharedStore';