saveSettings function infrastructure exported ✓ 100.0%
Last updated: 2026-02-24T21:07:57.497Z
Metrics
LOC: 7
Complexity: 1
Params: 1
Coverage: 100.0% (2/2 lines, 1x executed)
Signature
saveSettings(settings: Partial<Settings>): : Promise<void>
Summary
Saves a partial settings update (shallow merge with current settings).
Tags
#@param settings - Partial settings to merge
Source Code
export async function saveSettings(settings: Partial<Settings>): Promise<void> {
await updateStorageAtomically(
STORAGE_KEYS.SETTINGS,
DEFAULT_SETTINGS,
(current) => ({ ...current, ...settings }),
);
}
Dependencies (Outgoing)
| Target | Type |
|---|---|
| updateStorageAtomically | calls |
Impact (Incoming)
| Source | Type |
|---|---|
| handle | uses |