From 54e9dfc280e93e8c80a7207a9ed4b01cba680f18 Mon Sep 17 00:00:00 2001 From: Christiaan Rakowski Date: Sat, 2 Jan 2016 22:05:54 +0100 Subject: [PATCH 1/2] Notify.JS - Notify.isSupported is a method in 1.2.8 Notify.isSupported is typed as a property, but it is actually a method these days. https://github.com/alexgibson/notify.js/commit/6133f4daf64f9e3ff94957b50f9aca04a5a434e1 --- notifyjs/notifyjs.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/notifyjs/notifyjs.d.ts b/notifyjs/notifyjs.d.ts index 1c683084d..1214052c7 100644 --- a/notifyjs/notifyjs.d.ts +++ b/notifyjs/notifyjs.d.ts @@ -1,4 +1,4 @@ -// Type definitions for notify.js 1.2.3 +// Type definitions for notify.js 1.2.8 // Project: https://github.com/alexgibson/notify.js // Definitions by: soundTricker // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -23,7 +23,7 @@ declare var Notify: { * return true if the browser supports HTML5 Notification * @param true : the browser supports HTML5 Notification, false ; the browser does not supports HTML5 Notification. */ - isSupported: boolean; + isSupported(): boolean; /** * shows the user's current permission level (granted, denied or default), returns null if notifications are not supported. From 48aa1402fd462017eb046ad52b0632ad9205374b Mon Sep 17 00:00:00 2001 From: Christiaan Rakowski Date: Sat, 2 Jan 2016 22:10:10 +0100 Subject: [PATCH 2/2] Update notifyjs-tests.ts --- notifyjs/notifyjs-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifyjs/notifyjs-tests.ts b/notifyjs/notifyjs-tests.ts index 3289791de..7d9ffec67 100644 --- a/notifyjs/notifyjs-tests.ts +++ b/notifyjs/notifyjs-tests.ts @@ -31,6 +31,6 @@ function test_Notify_static_methods() { Notify.requestPermission(); Notify.requestPermission(()=> console.log("onPermissionGrantedCallback")); Notify.requestPermission(()=> console.log("onPermissionGrantedCallback"), ()=> console.log("onPermissionDeniedCallback")); - Notify.isSupported; + Notify.isSupported(); Notify.permissionLevel; }