Skip to content

Commit e108281

Browse files
shudingnevilm-lt
authored andcommitted
re-export InfiniteFetcher (vercel#1728)
1 parent 038f3da commit e108281

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

infinite/index.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,10 +272,17 @@ export const infinite = (<Data, Error>(useSWRNext: SWRHook) =>
272272
}) as unknown as Middleware
273273

274274
export default withMiddleware(useSWR, infinite) as SWRInfiniteHook
275+
275276
export {
276277
SWRInfiniteConfiguration,
277278
SWRInfiniteResponse,
278279
SWRInfiniteHook,
279280
SWRInfiniteKeyLoader,
280281
SWRInfiniteFetcher
281282
}
283+
284+
// @TODO: remove this in 2.0
285+
/**
286+
* @deprecated `InfiniteFetcher` will be renamed to `SWRInfiniteFetcher`.
287+
*/
288+
export type InfiniteFetcher = SWRInfiniteFetcher

0 commit comments

Comments
 (0)