Merge pull request #21215 from landmarkhw/master

react-redux-toastr: Fix issue #13390 with TypeScript component compatibility
This commit is contained in:
Mine Starks
2017-12-11 17:11:07 -08:00
committed by GitHub
+5 -5
View File
@@ -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 {