Skip to content

Commit d067ca1

Browse files
authored
update types
1 parent 485a6ff commit d067ca1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js.flow

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
declare export default function useOnlineStatus(opts: {
1+
type OnlineStatusOpts = {
22
onOnline?: () => void,
33
onOffline?: () => void,
44
onStatusChange?: (online: boolean) => void,
5-
}): boolean;
5+
}
6+
7+
declare export default function useOnlineStatus(opts: OnlineStatusOpts): boolean;

0 commit comments

Comments
 (0)