mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
update toastr.d.ts
add clearOptions to force clearing a toast, ignoring focus
This commit is contained in:
9
toastr/toastr.d.ts
vendored
9
toastr/toastr.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user