From d998af2ff33295d7bc63644086646ba1300f2ad7 Mon Sep 17 00:00:00 2001 From: Drew Noakes Date: Tue, 31 Jan 2017 22:47:04 +0000 Subject: [PATCH] Specify function type. --- react-modal/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/react-modal/index.d.ts b/react-modal/index.d.ts index 80958ae918..13e4a94a0c 100644 --- a/react-modal/index.d.ts +++ b/react-modal/index.d.ts @@ -18,8 +18,8 @@ declare module "react-modal" { }; }; appElement?: HTMLElement | {}; - onAfterOpen?: Function; - onRequestClose?: Function; + onAfterOpen?: () => void; + onRequestClose?: () => void; closeTimeoutMS?: number; ariaHideApp?: boolean; shouldCloseOnOverlayClick?: boolean;