diff --git a/types/react-redux-toastr/index.d.ts b/types/react-redux-toastr/index.d.ts index a7ca79c5b1..06dceba2ef 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 {