We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 485a6ff commit d067ca1Copy full SHA for d067ca1
index.js.flow
@@ -1,5 +1,7 @@
1
-declare export default function useOnlineStatus(opts: {
+type OnlineStatusOpts = {
2
onOnline?: () => void,
3
onOffline?: () => void,
4
onStatusChange?: (online: boolean) => void,
5
-}): boolean;
+}
6
+
7
+declare export default function useOnlineStatus(opts: OnlineStatusOpts): boolean;
0 commit comments