File tree 1 file changed +9
-1
lines changed 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ import { useIsomorphicLayoutEffect } from '../src/utils/env'
13
13
import { serialize } from '../src/utils/serialize'
14
14
import { isUndefined , isFunction , UNDEFINED } from '../src/utils/helper'
15
15
import { withMiddleware } from '../src/utils/with-middleware'
16
- import {
16
+
17
+ import type {
17
18
SWRInfiniteConfiguration ,
18
19
SWRInfiniteResponse ,
19
20
SWRInfiniteHook ,
@@ -265,10 +266,17 @@ export const infinite = (<Data, Error>(useSWRNext: SWRHook) =>
265
266
} ) as unknown as Middleware
266
267
267
268
export default withMiddleware ( useSWR , infinite ) as SWRInfiniteHook
269
+
268
270
export {
269
271
SWRInfiniteConfiguration ,
270
272
SWRInfiniteResponse ,
271
273
SWRInfiniteHook ,
272
274
SWRInfiniteKeyLoader ,
273
275
SWRInfiniteFetcher
274
276
}
277
+
278
+ // @TODO : remove this in 2.0
279
+ /**
280
+ * @deprecated `InfiniteFetcher` will be renamed to `SWRInfiniteFetcher`.
281
+ */
282
+ export type InfiniteFetcher = SWRInfiniteFetcher
You can’t perform that action at this time.
0 commit comments