@agilant/toga-blox 1.0.159 → 1.0.160
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Options the consumer must pass in */
|
|
2
|
-
export type
|
|
2
|
+
export type UseTableInfiniteScrollOpts = {
|
|
3
3
|
rows: number;
|
|
4
4
|
hasInfiniteScroll: boolean;
|
|
5
5
|
isLoadingMore: boolean;
|
|
@@ -10,7 +10,7 @@ export type IseTableInfiniteScrollOpts = {
|
|
|
10
10
|
* Reusable hook — no app‑specific imports.
|
|
11
11
|
* Returns { scrollRef, sentinelRef }.
|
|
12
12
|
*/
|
|
13
|
-
export declare const useTableInfiniteScroll: ({ rows, hasInfiniteScroll, isLoadingMore, onNeedMore, rootMarginPx, }:
|
|
13
|
+
export declare const useTableInfiniteScroll: ({ rows, hasInfiniteScroll, isLoadingMore, onNeedMore, rootMarginPx, }: UseTableInfiniteScrollOpts) => {
|
|
14
14
|
scrollRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
15
15
|
sentinelRef: import("react").MutableRefObject<HTMLDivElement>;
|
|
16
16
|
};
|