From 4ef4306cf401829905f764845ed78ac072fb94b6 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 26 Dec 2021 19:59:04 +0100 Subject: 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. --- packages/shared/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/shared/src/index.ts') 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 { } from './schemas'; export type { Config, ConfigSnapshotIn, ConfigSnapshotOut } from './stores/Config'; -export { config, defaultConfig } from './stores/Config'; +export { config } from './stores/Config'; export type { SharedStore, @@ -43,4 +43,4 @@ export type { SharedStoreSnapshotIn, SharedStoreSnapshotOut, } from './stores/SharedStore'; -export { emptySharedStore, sharedStore } from './stores/SharedStore'; +export { sharedStore } from './stores/SharedStore'; -- cgit v1.2.3-54-g00ecf