mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
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
This commit is contained in:
committed by
Wesley Wigham
parent
6d895a2552
commit
3d5a2db8f6
2
types/react-redux-toastr/index.d.ts
vendored
2
types/react-redux-toastr/index.d.ts
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user