From d63cc7edaf66e72e6f5b17a78ed321fadea92431 Mon Sep 17 00:00:00 2001 From: Douglas Day Date: Thu, 2 Nov 2017 16:16:18 -0600 Subject: [PATCH] react-redux-toastr: Fix issue with TypeScript component compatibility --- types/react-redux-toastr/index.d.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/react-redux-toastr/index.d.ts b/types/react-redux-toastr/index.d.ts index 0f5b66903f..40829122dc 100644 --- a/types/react-redux-toastr/index.d.ts +++ b/types/react-redux-toastr/index.d.ts @@ -18,8 +18,8 @@ export type transitionOutType = 'bounceOut' | 'bounceOutUp' | 'fadeOut'; interface BasicToastrOptions { attention?: boolean; className?: string; - component?: Component; - icon?: Component; + component?: JSX.Element; + icon?: JSX.Element; onCloseButtonClick?: () => void; onHideComplete?: () => void; onShowComplete?: () => void; @@ -34,8 +34,8 @@ interface BasicToastrOptions { interface LightToastrOptions { attention?: boolean; className?: string; - component?: Component; - icon?: iconType | Component; + component?: JSX.Element; + icon?: iconType | JSX.Element; onCloseButtonClick?: () => void; onHideComplete?: () => void; onShowComplete?: () => void; @@ -55,7 +55,7 @@ interface ConfirmToastrOptions { } interface ConfirmToastrCustomOptions { - component: Component; + component: JSX.Element; } export interface Toastr {