Skip to content

Commit

Permalink
fix(use-is-online): type in getSnapshot (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle1an authored Jan 2, 2025
1 parent 9cc5dd8 commit 59414b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-is-online/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const subscribe: Parameters<typeof useSyncExternalStore>[0] = (callback) => {
};
};

const getSnapshot: Parameters<typeof useSyncExternalStore>[1] = () => {
const getSnapshot: Parameters<typeof useSyncExternalStore<boolean>>[1] = () => {
if (typeof window === 'undefined') {
return false;
}
Expand Down

0 comments on commit 59414b6

Please sign in to comment.