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 bfb2c48 commit f43c426
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
export default function useOnlineStatus(): boolean;
export interface OnlineStatusOpts {
onOnline?: () => void,
onOffline?: () => void,
onStatusChange?: (online: boolean) => void,
}

export default function useOnlineStatus(opts: OnlineStatusOpts): boolean;

0 comments on commit f43c426

Please sign in to comment.