Skip to content

Commit 067fe9f

Browse files
committed
more fixes for apollo-cache
1 parent c704a75 commit 067fe9f

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

packages/patch-cli/src/patches/apollo-cache+~1.3.0.patch

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
diff --git a/node_modules/apollo-cache/lib/types/DataProxy.d.ts b/node_modules/apollo-cache/lib/types/DataProxy.d.ts
2-
index 992df92..43979af 100644
2+
index 992df92..d3ff21a 100644
33
--- a/node_modules/apollo-cache/lib/types/DataProxy.d.ts
44
+++ b/node_modules/apollo-cache/lib/types/DataProxy.d.ts
5-
@@ -1,12 +1,14 @@
5+
@@ -1,19 +1,21 @@
66
import { DocumentNode } from 'graphql';
77
+import { TypedDocumentNode } from '@graphql-typed-document-node/core';
88
+
@@ -21,6 +21,15 @@ index 992df92..43979af 100644
2121
fragmentName?: string;
2222
variables?: TVariables;
2323
}
24+
- interface WriteQueryOptions<TData, TVariables> extends Query<TVariables> {
25+
+ interface WriteQueryOptions<TData, TVariables> extends Query<TVariables, TData> {
26+
data: TData;
27+
}
28+
- interface WriteFragmentOptions<TData, TVariables> extends Fragment<TVariables> {
29+
+ interface WriteFragmentOptions<TData, TVariables> extends Fragment<TVariables, TData> {
30+
data: TData;
31+
}
32+
interface WriteDataOptions<TData> {
2433
@@ -26,8 +28,8 @@ export declare namespace DataProxy {
2534
};
2635
}

0 commit comments

Comments
 (0)