From 2561381939c0ecdfac3ac321c92aa389d5a00918 Mon Sep 17 00:00:00 2001 From: Jonathan Flower Date: Fri, 1 Nov 2019 10:48:19 -0400 Subject: [PATCH] added getState prop for react-redux-toastr 7.6 (#39305) * added getState prop for react-redux-toastr 7.6 * improved whitespace * fix missing simicolon --- types/react-redux-toastr/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/react-redux-toastr/index.d.ts b/types/react-redux-toastr/index.d.ts index 9a7a115725..f30ef826ef 100644 --- a/types/react-redux-toastr/index.d.ts +++ b/types/react-redux-toastr/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-redux-toastr 7.4 +// Type definitions for react-redux-toastr 7.6 // Project: https://github.com/diegoddox/react-redux-toastr // Definitions by: Aleksandar Ivanov // Artyom Stukans @@ -30,6 +30,7 @@ interface BasicToastrOptions { timeOut?: number; transitionIn?: transitionInType; transitionOut?: transitionOutType; + getState?: (state: ToastrState) => ToastrState; } interface LightToastrOptions { @@ -94,7 +95,7 @@ interface ReduxToastrProps { }; newestOnTop?: boolean; options?: any; // This is currently not used, waiting for response from the package author to remove - position?: positionType + position?: positionType; preventDuplicates?: boolean; progressBar?: boolean; timeOut?: number;