mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-27 17:48:17 -05:00
Remove old prefs types
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user