Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l committed Oct 26, 2018
1 parent 485a6ff commit f3e7e74
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js.flow
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit f3e7e74

Please sign in to comment.