File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,11 @@ declare module "@apollo/react-hooks" {
5
5
} from "apollo-typed-documents" ;
6
6
import { QueryResult } from "@apollo/react-common" ;
7
7
import {
8
+ LazyQueryHookOptions ,
8
9
MutationHookOptions ,
9
10
MutationTuple ,
10
11
QueryHookOptions ,
12
+ QueryTuple ,
11
13
SubscriptionHookOptions ,
12
14
} from "@apollo/react-hooks/lib/types" ;
13
15
@@ -22,6 +24,15 @@ declare module "@apollo/react-hooks" {
22
24
options ?: TOptions
23
25
) : QueryResult < TData , TVariables > ;
24
26
27
+ export function useLazyQuery <
28
+ TData ,
29
+ TVariables extends OperationVariables ,
30
+ TOptions extends LazyQueryHookOptions < TData , TVariables >
31
+ > (
32
+ query : TypedDocumentNode < TVariables , TData > ,
33
+ options ?: TOptions
34
+ ) : QueryTuple < TData , TVariables > ;
35
+
25
36
export function useMutation <
26
37
TData ,
27
38
TVariables extends OperationVariables ,
You can’t perform that action at this time.
0 commit comments