Skip to content

Commit c704a75

Browse files
committedAug 5, 2020
fix for apollo-cache, bump 3.0.2
1 parent 3fd6188 commit c704a75

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
 

‎packages/patch-cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphql-typed-document-node/patch-cli",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"repository": "git@github.com:dotansimha/graphql-typed-document-node.git",
55
"author": "Dotan Simha <dotansimha@gmail.com>",
66
"license": "MIT",

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

+19-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ index 992df92..43979af 100644
3333
writeFragment<TData = any, TVariables = any>(options: DataProxy.WriteFragmentOptions<TData, TVariables>): void;
3434
writeData<TData = any>(options: DataProxy.WriteDataOptions<TData>): void;
3535
diff --git a/node_modules/apollo-cache/src/types/DataProxy.ts b/node_modules/apollo-cache/src/types/DataProxy.ts
36-
index 8b85709..4f2a2f3 100644
36+
index 8b85709..cc8a1bf 100644
3737
--- a/node_modules/apollo-cache/src/types/DataProxy.ts
3838
+++ b/node_modules/apollo-cache/src/types/DataProxy.ts
3939
@@ -1,13 +1,14 @@
@@ -71,6 +71,24 @@ index 8b85709..4f2a2f3 100644
7171

7272
/**
7373
* The name of the fragment in your GraphQL document to be used. If you do
74+
@@ -45,7 +46,7 @@ export namespace DataProxy {
75+
}
76+
77+
export interface WriteQueryOptions<TData, TVariables>
78+
- extends Query<TVariables> {
79+
+ extends Query<TVariables, TData> {
80+
/**
81+
* The data you will be writing to the store.
82+
*/
83+
@@ -53,7 +54,7 @@ export namespace DataProxy {
84+
}
85+
86+
export interface WriteFragmentOptions<TData, TVariables>
87+
- extends Fragment<TVariables> {
88+
+ extends Fragment<TVariables, TData> {
89+
/**
90+
* The data you will be writing to the store.
91+
*/
7492
@@ -87,7 +88,7 @@ export interface DataProxy {
7593
* Reads a GraphQL query from the root query id.
7694
*/

0 commit comments

Comments
 (0)
Please sign in to comment.