From f3e7e74f87d778db6e7685c35039c96baee16030 Mon Sep 17 00:00:00 2001 From: Laurin Quast Date: Fri, 26 Oct 2018 14:30:37 +0200 Subject: [PATCH] update types --- index.js.flow | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js.flow b/index.js.flow index f09a674..dcb59d4 100644 --- a/index.js.flow +++ b/index.js.flow @@ -1,5 +1,7 @@ -declare export default function useOnlineStatus(opts: { +type OnlineStatusOpts = { onOnline?: () => void, onOffline?: () => void, onStatusChange?: (online: boolean) => void, -}): boolean; +} + +declare export default function useOnlineStatus(opts: OnlineStatusOpts): boolean;