mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-30 11:14:27 +08:00
Merge pull request #7451 from csrakowski/NotifyJS
Notify js - Notify.isSupported is a method in 1.2.8
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -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 <https://github.com/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.
|
||||
|
||||
Reference in New Issue
Block a user