Function: normalizeAppSettings()
function normalizeAppSettings(
candidate?: AppSettingsCandidate,
fallback?: AppSettings
): AppSettings;
Defined in: src/stores/settings/state.ts:240
Normalizes persisted or partial settings objects into a complete AppSettings structure.
Parametersโ
candidate?โ
AppSettingsCandidate = {}
Partial settings snapshot.
fallback?โ
AppSettings = defaultSettings
Returnsโ
A fully normalized settings object.
Remarksโ
Missing properties are filled with defaultSettings to guarantee a fully-populated settings object.