From 384a53f595cdba08d1398902e53c6901700ec459 Mon Sep 17 00:00:00 2001 From: Moes Date: Tue, 10 May 2016 11:04:35 +1000 Subject: [PATCH] update toastr.d.ts add clearOptions to force clearing a toast, ignoring focus --- toastr/toastr.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/toastr/toastr.d.ts b/toastr/toastr.d.ts index edf65d4073..e921bfbd7b 100644 --- a/toastr/toastr.d.ts +++ b/toastr/toastr.d.ts @@ -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 // 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