File tree 8 files changed +16
-34
lines changed
8 files changed +16
-34
lines changed Original file line number Diff line number Diff line change @@ -14,12 +14,7 @@ import type {
14
14
WatchQueryOptions ,
15
15
} from "@apollo/client/core" ;
16
16
import type { SubscribeToMoreFunction } from "@apollo/client/core" ;
17
- import type {
18
- CacheKey ,
19
- FetchMoreFunction ,
20
- QueryRef ,
21
- RefetchFunction ,
22
- } from "@apollo/client/react/internal" ;
17
+ import type { CacheKey , QueryRef } from "@apollo/client/react/internal" ;
23
18
import {
24
19
getSuspenseCache ,
25
20
unwrapQueryRef ,
@@ -28,6 +23,8 @@ import {
28
23
} from "@apollo/client/react/internal" ;
29
24
import type { DeepPartial , NoInfer } from "@apollo/client/utilities" ;
30
25
26
+ import type { FetchMoreFunction , RefetchFunction } from "../internal/types.js" ;
27
+
31
28
import type { SkipToken } from "./constants.js" ;
32
29
import { wrapHook } from "./internal/index.js" ;
33
30
import { useApolloClient } from "./useApolloClient.js" ;
Original file line number Diff line number Diff line change @@ -21,12 +21,12 @@ import type {
21
21
WatchQueryOptions ,
22
22
} from "@apollo/client/core" ;
23
23
import { NetworkStatus } from "@apollo/client/core" ;
24
- import type { VariablesOption } from "@apollo/client/react/internal" ;
25
24
import type { NoInfer , OnlyRequiredProperties } from "@apollo/client/utilities" ;
26
25
import { maybeDeepFreeze } from "@apollo/client/utilities" ;
27
26
import { invariant } from "@apollo/client/utilities/invariant" ;
28
27
29
28
import type { NextFetchPolicyContext } from "../../core/watchQueryOptions.js" ;
29
+ import type { VariablesOption } from "../internal/types.js" ;
30
30
31
31
import { useRenderGuard } from "./internal/index.js" ;
32
32
import { useDeepMemo } from "./internal/useDeepMemo.js" ;
Original file line number Diff line number Diff line change @@ -17,12 +17,7 @@ import type {
17
17
SubscribeToMoreFunction ,
18
18
SubscribeToMoreOptions ,
19
19
} from "@apollo/client/core" ;
20
- import type {
21
- CacheKey ,
22
- FetchMoreFunction ,
23
- QueryRef ,
24
- RefetchFunction ,
25
- } from "@apollo/client/react/internal" ;
20
+ import type { CacheKey , QueryRef } from "@apollo/client/react/internal" ;
26
21
import {
27
22
assertWrappedQueryRef ,
28
23
getSuspenseCache ,
@@ -36,6 +31,8 @@ import type {
36
31
} from "@apollo/client/utilities" ;
37
32
import { invariant } from "@apollo/client/utilities/invariant" ;
38
33
34
+ import type { FetchMoreFunction , RefetchFunction } from "../internal/types.js" ;
35
+
39
36
import { __use , useRenderGuard } from "./internal/index.js" ;
40
37
import { useApolloClient } from "./useApolloClient.js" ;
41
38
import { useWatchQueryOptions } from "./useSuspenseQuery.js" ;
Original file line number Diff line number Diff line change @@ -5,11 +5,7 @@ import type { SubscribeToMoreFunction } from "@apollo/client/core";
5
5
import type { FetchMoreQueryOptions } from "@apollo/client/core" ;
6
6
import type { ApolloClient } from "@apollo/client/core" ;
7
7
import type { ObservableQuery } from "@apollo/client/core" ;
8
- import type {
9
- FetchMoreFunction ,
10
- QueryRef ,
11
- RefetchFunction ,
12
- } from "@apollo/client/react/internal" ;
8
+ import type { QueryRef } from "@apollo/client/react/internal" ;
13
9
import {
14
10
assertWrappedQueryRef ,
15
11
getWrappedPromise ,
@@ -18,6 +14,8 @@ import {
18
14
wrapQueryRef ,
19
15
} from "@apollo/client/react/internal" ;
20
16
17
+ import type { FetchMoreFunction , RefetchFunction } from "../internal/types.js" ;
18
+
21
19
import { wrapHook } from "./internal/index.js" ;
22
20
import { useApolloClient } from "./useApolloClient.js" ;
23
21
Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ import type {
10
10
TypedDocumentNode ,
11
11
} from "@apollo/client/core" ;
12
12
import type { FragmentType , MaybeMasked } from "@apollo/client/masking" ;
13
- import type { VariablesOption } from "@apollo/client/react/internal" ;
14
13
import { getSuspenseCache } from "@apollo/client/react/internal" ;
15
14
import type { NoInfer } from "@apollo/client/utilities" ;
16
15
17
16
import type { FragmentKey } from "../internal/cache/types.js" ;
17
+ import type { VariablesOption } from "../internal/types.js" ;
18
18
19
19
import { __use } from "./internal/__use.js" ;
20
20
import { wrapHook } from "./internal/index.js" ;
Original file line number Diff line number Diff line change @@ -17,18 +17,15 @@ import type {
17
17
import type { SubscribeToMoreFunction } from "@apollo/client/core" ;
18
18
import { NetworkStatus } from "@apollo/client/core" ;
19
19
import type { MaybeMasked } from "@apollo/client/masking" ;
20
- import type {
21
- CacheKey ,
22
- FetchMoreFunction ,
23
- QueryKey ,
24
- RefetchFunction ,
25
- } from "@apollo/client/react/internal" ;
20
+ import type { CacheKey , QueryKey } from "@apollo/client/react/internal" ;
26
21
import { getSuspenseCache } from "@apollo/client/react/internal" ;
27
22
import { DocumentType , verifyDocumentType } from "@apollo/client/react/parser" ;
28
23
import type { DeepPartial , NoInfer } from "@apollo/client/utilities" ;
29
24
import { __DEV__ } from "@apollo/client/utilities/environment" ;
30
25
import { invariant } from "@apollo/client/utilities/invariant" ;
31
26
27
+ import type { FetchMoreFunction , RefetchFunction } from "../internal/types.js" ;
28
+
32
29
import type { SkipToken } from "./constants.js" ;
33
30
import { skipToken } from "./constants.js" ;
34
31
import { __use , useDeepMemo , wrapHook } from "./internal/index.js" ;
Original file line number Diff line number Diff line change @@ -15,8 +15,3 @@ export {
15
15
} from "./cache/QueryReference.js" ;
16
16
export type { SuspenseCacheOptions } from "./cache/SuspenseCache.js" ;
17
17
export type { HookWrappers } from "../hooks/internal/wrapHook.js" ;
18
- export type {
19
- FetchMoreFunction ,
20
- RefetchFunction ,
21
- VariablesOption ,
22
- } from "./types.js" ;
Original file line number Diff line number Diff line change @@ -9,10 +9,7 @@ import type {
9
9
WatchQueryFetchPolicy ,
10
10
WatchQueryOptions ,
11
11
} from "@apollo/client/core" ;
12
- import type {
13
- PreloadedQueryRef ,
14
- VariablesOption ,
15
- } from "@apollo/client/react/internal" ;
12
+ import type { PreloadedQueryRef } from "@apollo/client/react/internal" ;
16
13
import {
17
14
InternalQueryReference ,
18
15
wrapQueryRef ,
@@ -24,6 +21,7 @@ import type {
24
21
} from "@apollo/client/utilities" ;
25
22
26
23
import { wrapHook } from "../hooks/internal/index.js" ;
24
+ import type { VariablesOption } from "../internal/types.js" ;
27
25
28
26
export type PreloadQueryFetchPolicy = Extract <
29
27
WatchQueryFetchPolicy ,
You can’t perform that action at this time.
0 commit comments