declarations
Version:
[](https://www.npmjs.com/package/declarations)
29 lines (26 loc) • 840 B
TypeScript
// Type definitions for react-modal v1.3.0
// Project: https://github.com/reactjs/react-modal
// Definitions by: Rajab Shakirov <https://github.com/radziksh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../react/react.d.ts"/>
declare module "react-modal" {
interface ReactModal {
isOpen: boolean;
style?: {
content: {
[key: string]: any;
},
overlay: {
[key: string]: any;
}
},
appElement?: HTMLElement | {},
onAfterOpen?: Function,
onRequestClose?: Function,
closeTimeoutMS?: number,
ariaHideApp?: boolean,
shouldCloseOnOverlayClick?: boolean
}
let ReactModal: __React.ClassicComponentClass<ReactModal>;
export = ReactModal;
}