mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-28 02:20:31 +00:00
WIP WIP WIP WIP WIP WIP: Remove trailing newlines WIP WIP WIP WIP WIP WIP WIP WIP: All tests pass WIP WIP WIP
31 lines
891 B
TypeScript
31 lines
891 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 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;
|
|
}
|
|
let ReactModal: React.ClassicComponentClass<ReactModal>;
|
|
export = ReactModal;
|
|
}
|