Use Partial types for DNDSettings, SettingsOptions.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-04-27 16:16:16 -07:00
parent a49cb77840
commit 6a3f50d606
4 changed files with 14 additions and 14 deletions

View File

@@ -92,7 +92,7 @@ export function initPreferenceView(): void {
ipcRenderer.on(
"toggle-dnd",
(_event: Event, _state: boolean, newSettings: DNDSettings) => {
(_event: Event, _state: boolean, newSettings: Partial<DNDSettings>) => {
handleToggle("show-notification-option", newSettings.showNotification);
handleToggle("silent-option", newSettings.silent);