Skip to content

Commit 485a6ff

Browse files
authored
update types
1 parent 3938ed0 commit 485a6ff

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js.flow

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
declare export default function useOnlineStatus(): boolean;
1+
declare export default function useOnlineStatus(opts: {
2+
onOnline?: () => void,
3+
onOffline?: () => void,
4+
onStatusChange?: (online: boolean) => void,
5+
}): boolean;

0 commit comments

Comments
 (0)