Function: createSettingsOperationsSlice()
function createSettingsOperationsSlice(
setState: {
(
partial:
| SettingsStore
| Partial<SettingsStore>
| ((
state: SettingsStore
) => SettingsStore | Partial<SettingsStore>),
replace?: false
): void;
(
state: SettingsStore | ((state: SettingsStore) => SettingsStore),
replace: true
): void;
},
getState: () => SettingsStore
): Pick<
SettingsStore,
| "disposeSettingsSubscriptions"
| "initializeSettings"
| "persistHistoryLimit"
| "resetSettings"
| "syncFromBackend"
>;
Defined in: src/stores/settings/operations.ts:147
Creates the operational slice containing asynchronous settings actions.
Parametersโ
setStateโ
{
(partial:
| SettingsStore
| Partial<SettingsStore>
| ((state: SettingsStore) =>
| SettingsStore
| Partial<SettingsStore>), replace?: false): void;
(state:
| SettingsStore
| ((state: SettingsStore) => SettingsStore), replace: true): void;
}
getStateโ
() => SettingsStore
Returnsโ
Pick<SettingsStore,
| "disposeSettingsSubscriptions"
| "initializeSettings"
| "persistHistoryLimit"
| "resetSettings"
| "syncFromBackend">