feat(#8): TTS-голосовые подсказки в окне напоминания (opt-in)
This commit is contained in:
@@ -244,6 +244,11 @@ export function validateSettingsPatch(raw: unknown): Partial<Settings> | null {
|
||||
if (v === undefined) return null
|
||||
out.soundEnabled = v
|
||||
}
|
||||
if ('voicePromptsEnabled' in raw) {
|
||||
const v = bool(raw.voicePromptsEnabled)
|
||||
if (v === undefined) return null
|
||||
out.voicePromptsEnabled = v
|
||||
}
|
||||
if ('notificationMode' in raw) {
|
||||
const v = oneOf(raw.notificationMode, VALID_NOTIFY)
|
||||
if (v === undefined) return null
|
||||
|
||||
Reference in New Issue
Block a user