From fc8a19889b1e03c54f086ed595ebaf8aa6313997 Mon Sep 17 00:00:00 2001 From: sand4rt Date: Sat, 16 Jul 2022 00:14:26 +0200 Subject: [PATCH] fix: UseInfiniteScroll direction type --- packages/core/useInfiniteScroll/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/useInfiniteScroll/index.ts b/packages/core/useInfiniteScroll/index.ts index 71fb7653214..bf335f4c9eb 100644 --- a/packages/core/useInfiniteScroll/index.ts +++ b/packages/core/useInfiniteScroll/index.ts @@ -17,7 +17,7 @@ export interface UseInfiniteScrollOptions extends UseScrollOptions { * * @default 'bottom' */ - direction?: 'top' | 'bottom' + direction?: 'top' | 'bottom' | 'left' | 'right' /** * Whether to preserve the current scroll position when loading more items.