update toastr.d.ts

add clearOptions to force clearing a toast, ignoring focus
This commit is contained in:
Moes
2016-05-10 11:04:35 +10:00
parent 6d0e826824
commit 384a53f595

9
toastr/toastr.d.ts vendored
View File

@@ -1,4 +1,4 @@
// Type definitions for Toastr 2.0.1
// Type definitions for Toastr 2.1.1
// Project: https://github.com/CodeSeven/toastr
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -174,6 +174,13 @@ interface Toastr {
* @param toast Toast to clear
*/
(toast: JQuery): void;
/**
* Clear specific toast
*
* @param toast Toast to clear
* @param clearOptions force clearing a toast, ignoring focus
*/
(toast: JQuery, clearOptions: { force: boolean }): void;
};
/**
* Create an error toast