From 175e9ca5971d661dc75df5de4a2d0ba463502d89 Mon Sep 17 00:00:00 2001 From: CuriousCorrelation Date: Mon, 11 Jul 2022 23:11:19 +0530 Subject: [PATCH] Change `paginateFetch` type `paginateFetch` now has concrete types --- app/components/FilterOptions.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/components/FilterOptions.tsx b/app/components/FilterOptions.tsx index f4a9e42425..18d83da08a 100644 --- a/app/components/FilterOptions.tsx +++ b/app/components/FilterOptions.tsx @@ -23,7 +23,9 @@ type Props = { className?: string; onSelect: (key: string | null | undefined) => void; searchable?: boolean; - paginateFetch?: (options: any) => Promise; + paginateFetch?: ( + options: PaginatedItem + ) => Promise; }; const FilterOptions = ({