diff options
author | Kristóf Marussy <kristof@marussy.com> | 2021-12-26 19:59:04 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2021-12-26 20:02:08 +0100 |
commit | 4ef4306cf401829905f764845ed78ac072fb94b6 (patch) | |
tree | 980a91a11cb1ac5f730d72c385e542edd0617d82 /packages/shared/src/index.ts | |
parent | refactor: Clarify main process architecture (diff) | |
download | sophie-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.ts | 4 |
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 | ||
37 | export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; | 37 | export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; |
38 | export { config, defaultConfig } from './stores/Config'; | 38 | export { config } from './stores/Config'; |
39 | 39 | ||
40 | export type { | 40 | export 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'; |
46 | export { emptySharedStore, sharedStore } from './stores/SharedStore'; | 46 | export { sharedStore } from './stores/SharedStore'; |