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