From a029ef90722eff3c1295100ac567214ee8a007bc Mon Sep 17 00:00:00 2001 From: Marc-Andre Roy Date: Mon, 13 May 2013 20:18:49 -0400 Subject: [PATCH] Update toastr.d.ts to reflect toastr 1.3.0 changes --- toastr/toastr.d.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/toastr/toastr.d.ts b/toastr/toastr.d.ts index 8d3047ad7..e22e8cbfc 100644 --- a/toastr/toastr.d.ts +++ b/toastr/toastr.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Toastr 1.0 +// Type definitions for Toastr 1.3.0 // Project: https://github.com/CodeSeven/toastr // Definitions by: Boris Yankov // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -28,10 +28,18 @@ interface ToastrOptions { */ fadeIn?: number; /** + * OnFadeIn function callback + **/ + onFadeIn?: () => void; + /** * Time in milliseconds the toast should take to fade out */ fadeOut?: number; /** + * OnFadeOut function callback + **/ + onFadeOut?: () => void; + /** * Time in milliseconds the toast should be displayed after mouse over */ extendedTimeOut?: number; @@ -77,6 +85,10 @@ interface ToastrOptions { * CSS class the message element will be given */ messageClass?: string; + /** + * Set newest toast to appear on top + **/ + newestOnTop?: bool; /** * Function to execute on toast click