We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2d4f1a3 + 6442e24 commit 141ea67Copy full SHA for 141ea67
infinite/types.ts
@@ -17,9 +17,9 @@ export type SWRInfiniteFetcher<
17
: never
18
19
20
-export type SWRInfiniteKeyLoader = (
+export type SWRInfiniteKeyLoader<Data = any> = (
21
index: number,
22
- previousPageData: any | null
+ previousPageData: Data | null
23
) => Arguments
24
25
export interface SWRInfiniteConfiguration<
0 commit comments