DefinitelyTyped/react-modal/index.d.ts
2016-12-25 05:34:45 +09:00

32 lines
920 B
TypeScript

// Type definitions for react-modal v1.6.1
// Project: https://github.com/reactjs/react-modal
// Definitions by: Rajab Shakirov <https://github.com/radziksh>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="react"/>
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,
overlayClassName?: string,
className?: string
contentLabel?: string
}
let ReactModal: React.ClassicComponentClass<ReactModal>;
export = ReactModal;
}