mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Adding missing timeout property, changing others to be properties instead of functions, spelling fixes
This commit is contained in:
@@ -14,6 +14,7 @@ function test_Notify_constructor() {
|
||||
body : "fuga",
|
||||
icon : "./logo.png",
|
||||
tag : "user",
|
||||
timeout: 2,
|
||||
notifyShow : (e:Event)=> console.log("notifyShow", e),
|
||||
notifyClose : ()=> console.log("notifyClose"),
|
||||
notifyClick : ()=> console.log("notifyClick"),
|
||||
@@ -26,9 +27,10 @@ function test_Notify_constructor() {
|
||||
}
|
||||
|
||||
function test_Notify_static_methods() {
|
||||
Notify.needsPermission();
|
||||
Notify.needsPermission;
|
||||
Notify.requestPermission();
|
||||
Notify.requestPermission(()=> console.log("onPermissionGrantedCallback"));
|
||||
Notify.requestPermission(()=> console.log("onPermissionGrantedCallback"), ()=> console.log("onPermissionDeniedCallback"));
|
||||
Notify.isSupported();
|
||||
Notify.isSupported;
|
||||
Notify.permissionLevel;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user