From 3d5a2db8f6adbbeffdf2aa23aa92674a76d589e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Sahlstr=C3=B6m?= Date: Wed, 17 Jan 2018 20:47:56 +0100 Subject: [PATCH] Add JSX.Element to component in BasicToastrOptions (#22825) We are getting error when trying to add component for Toastr.info, success, error and warning since "component" property is of type Component and not JSX.Element like the LightToastrOptions has. Hence it would be great if we can add it to the BasicToastrOptions as well. Thanks --- types/react-redux-toastr/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-redux-toastr/index.d.ts b/types/react-redux-toastr/index.d.ts index 57378823b9..29570b99a2 100644 --- a/types/react-redux-toastr/index.d.ts +++ b/types/react-redux-toastr/index.d.ts @@ -18,7 +18,7 @@ export type transitionOutType = 'bounceOut' | 'bounceOutUp' | 'fadeOut'; interface BasicToastrOptions { attention?: boolean; className?: string; - component?: Component; + component?: Component | JSX.Element; icon?: JSX.Element; onCloseButtonClick?: () => void; onHideComplete?: () => void;