Change paginateFetch type

`paginateFetch` now has concrete types
This commit is contained in:
CuriousCorrelation authored and Tom Moor committed 2022-07-17 12:22:25 +01:00
1 parent a7fc3494c8
commit 175e9ca597
1 file changed
+3 -1
+3 -1
View File
@@ -23,7 +23,9 @@ type Props = {
className?: string;
onSelect: (key: string | null | undefined) => void;
searchable?: boolean;
paginateFetch?: (options: any) => Promise<any[] | undefined>;
paginateFetch?: (
options: PaginatedItem
) => Promise<PaginatedItem[] | undefined>;
};
const FilterOptions = ({