From da610a51f49807d1409f36b98e06e89447a4202b Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Thu, 27 Jan 2022 01:02:02 +0100 Subject: refactor: Extract config handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move the handling of the contents of the config file out of the stores and into dedicated files to simplify the code of the stores. Signed-off-by: Kristóf Marussy --- packages/main/src/stores/__tests__/SharedStore.spec.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'packages/main/src/stores/__tests__') diff --git a/packages/main/src/stores/__tests__/SharedStore.spec.ts b/packages/main/src/stores/__tests__/SharedStore.spec.ts index dfd59a1..268ce3f 100644 --- a/packages/main/src/stores/__tests__/SharedStore.spec.ts +++ b/packages/main/src/stores/__tests__/SharedStore.spec.ts @@ -18,9 +18,10 @@ * SPDX-License-Identifier: AGPL-3.0-only */ -import type { ProfileConfig } from '../Profile'; -import type { ServiceConfig } from '../Service'; -import SharedStore, { Config } from '../SharedStore'; +import SharedStore from '../SharedStore'; +import type Config from '../config/Config'; +import type ProfileConfig from '../config/ProfileConfig'; +import type ServiceConfig from '../config/ServiceConfig'; const profileProps: ProfileConfig = { name: 'Test profile', -- cgit v1.2.3-70-g09d2