mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-31 19:12:20 +08:00
Merge pull request #19673 from dimonka83/modal-props-fix
[react-overlays] Modal: add className prop and make manager prop optional
This commit is contained in:
4
types/react-overlays/lib/Modal.d.ts
vendored
4
types/react-overlays/lib/Modal.d.ts
vendored
@@ -10,6 +10,8 @@ declare namespace Modal { }
|
||||
export = Modal;
|
||||
|
||||
interface ModalProps extends TransitionCallbacks, PortalProps {
|
||||
className?: string;
|
||||
|
||||
/**
|
||||
* Set the visibility of the Modal
|
||||
*/
|
||||
@@ -122,5 +124,5 @@ interface ModalProps extends TransitionCallbacks, PortalProps {
|
||||
* A ModalManager instance used to track and manage the state of open
|
||||
* Modals. Useful when customizing how modals interact within a container
|
||||
*/
|
||||
manager: ModalManager;
|
||||
manager?: ModalManager;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user