Specify function type.

This commit is contained in:
Drew Noakes
2017-01-31 22:47:04 +00:00
parent c1d3c066bf
commit d998af2ff3

View File

@@ -18,8 +18,8 @@ declare module "react-modal" {
};
};
appElement?: HTMLElement | {};
onAfterOpen?: Function;
onRequestClose?: Function;
onAfterOpen?: () => void;
onRequestClose?: () => void;
closeTimeoutMS?: number;
ariaHideApp?: boolean;
shouldCloseOnOverlayClick?: boolean;