From 0cf9e39d38e82bfde7faaec687dfdf90a3030032 Mon Sep 17 00:00:00 2001 From: Joel Jeremy Marquez Date: Tue, 14 Jan 2025 09:07:54 -0800 Subject: [PATCH] Remove old prefs types --- .../src/client/state-types/index.d.ts | 4 +- .../src/client/state-types/prefs.d.ts | 40 ------------------- 2 files changed, 1 insertion(+), 43 deletions(-) delete mode 100644 packages/loot-core/src/client/state-types/prefs.d.ts diff --git a/packages/loot-core/src/client/state-types/index.d.ts b/packages/loot-core/src/client/state-types/index.d.ts index 61f48881967..9e9d9665707 100644 --- a/packages/loot-core/src/client/state-types/index.d.ts +++ b/packages/loot-core/src/client/state-types/index.d.ts @@ -1,15 +1,13 @@ import type * as constants from '../constants'; -import type { PrefsActions, PrefsState } from './prefs'; import type { UserActions, UserState } from './user'; export type CloseBudgetAction = { type: typeof constants.CLOSE_BUDGET; }; -export type Action = PrefsActions | UserActions | CloseBudgetAction; +export type Action = UserActions | CloseBudgetAction; export type State = { - prefs: PrefsState; user: UserState; }; diff --git a/packages/loot-core/src/client/state-types/prefs.d.ts b/packages/loot-core/src/client/state-types/prefs.d.ts deleted file mode 100644 index 184dcdc5f44..00000000000 --- a/packages/loot-core/src/client/state-types/prefs.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type { - GlobalPrefs, - MetadataPrefs, - SyncedPrefs, -} from '../../types/prefs'; -import type * as constants from '../constants'; - -export type PrefsState = { - local: MetadataPrefs; - global: GlobalPrefs; - synced: SyncedPrefs; -}; - -export type SetPrefsAction = { - type: typeof constants.SET_PREFS; - prefs: MetadataPrefs; - globalPrefs: GlobalPrefs; - syncedPrefs: SyncedPrefs; -}; - -export type MergeLocalPrefsAction = { - type: typeof constants.MERGE_LOCAL_PREFS; - prefs: MetadataPrefs; -}; - -export type MergeGlobalPrefsAction = { - type: typeof constants.MERGE_GLOBAL_PREFS; - globalPrefs: GlobalPrefs; -}; - -export type MergeSyncedPrefsAction = { - type: typeof constants.MERGE_SYNCED_PREFS; - syncedPrefs: SyncedPrefs; -}; - -export type PrefsActions = - | SetPrefsAction - | MergeLocalPrefsAction - | MergeGlobalPrefsAction - | MergeSyncedPrefsAction;