mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 07:17:04 +00:00
Corrected notification duration to timeout, state restored to nomal
This commit is contained in:
Vendored
+3
-3
@@ -420,7 +420,7 @@ declare namespace fin {
|
||||
/**
|
||||
* The timeout for displaying a notification.Can be in milliseconds or "never".
|
||||
*/
|
||||
duration?: number | "never";
|
||||
timeout?: number | "never";
|
||||
/**
|
||||
* The url of the notification
|
||||
*/
|
||||
@@ -804,9 +804,9 @@ declare namespace fin {
|
||||
*/
|
||||
getSnapshot(callback?: (base64Snapshot: string) => void, errorCallback?: (reason: string) => void): void;
|
||||
/**
|
||||
* Gets the current state ("minimized", "maximized", or "restored") of the window.
|
||||
* Gets the current state ("minimized", "maximized", or "normal") of the window.
|
||||
*/
|
||||
getState(callback?: (state: "minimized" | "maximized" | "restored") => void, errorCallback?: (reason: string) => void): void;
|
||||
getState(callback?: (state: "minimized" | "maximized" | "normal") => void, errorCallback?: (reason: string) => void): void;
|
||||
/**
|
||||
* Returns the zoom level of the window.
|
||||
*/
|
||||
|
||||
@@ -207,7 +207,7 @@ function test_notification() {
|
||||
notification.close();
|
||||
// sendMessage
|
||||
notification = new fin.desktop.Notification({
|
||||
duration: 10,
|
||||
timeout: 10,
|
||||
url: "http://localhost:5000/Account/Register",
|
||||
message: "Hello",
|
||||
onShow: () => { },
|
||||
|
||||
Reference in New Issue
Block a user