mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-08 09:17:06 +08:00
Make transition prop optional
This prop is optional in both `<Modal />` and `<Overlay />` components
This commit is contained in:
2
types/react-overlays/lib/Overlay.d.ts
vendored
2
types/react-overlays/lib/Overlay.d.ts
vendored
@@ -29,5 +29,5 @@ interface OverlayProps extends TransitionCallbacks, PortalProps, PositionProps {
|
||||
* A `react-transition-group@2.0.0` `<Transition/>` component
|
||||
* used to animate the overlay as it changes visibility.
|
||||
*/
|
||||
transition: Element;
|
||||
transition?: Element;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user