Skip to content

Commit b763a64

Browse files
committed
typing fix
1 parent 0c47f1c commit b763a64

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/useInfiniteScroll.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ export interface UseInfiniteScrollHookArgs {
1818
// If the list has more items to load.
1919
hasNextPage: boolean;
2020
// The callback function to execute when the 'onLoadMore' is triggered.
21-
onLoadMore: Function;
21+
// eslint-disable-next-line no-undef
22+
onLoadMore: VoidFunction;
2223
// We pass this to 'IntersectionObserver'. We can use it to configure when to trigger 'onLoadMore'.
2324
rootMargin?: string;
2425
// Flag to stop infinite scrolling. Can be used in case of an error etc too.

0 commit comments

Comments
 (0)