From fca48c04262ae6f1a8c4e7391a743ab768c7290c Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 5 Aug 2020 11:22:43 +0100 Subject: [PATCH] improve types --- src/Notifier.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notifier.ts b/src/Notifier.ts index 6c783a7b33..473de6c161 100644 --- a/src/Notifier.ts +++ b/src/Notifier.ts @@ -209,7 +209,7 @@ export const Notifier = { return plaf && plaf.supportsNotifications(); }, - setEnabled: function(enable: boolean, callback: () => void) { + setEnabled: function(enable: boolean, callback?: () => void) { const plaf = PlatformPeg.get(); if (!plaf) return;