Skip to content

Commit d688d76

Browse files
committed
just flip the options
1 parent 5fb419d commit d688d76

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.changeset/mean-beans-agree.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@apollo/client": major
3+
---
4+
5+
Generic arguments for `Cache.ReadOptions` were flipped from `TVariables, TData` to `TData, TVariables`.

src/cache/core/types/Cache.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,7 @@ export declare namespace Cache {
1919
lastDiff?: Cache.DiffResult<TData>
2020
) => void;
2121

22-
/**
23-
* @deprecated Use `Cache.ReadFnOptions` instead. Note that `TVariables` and `TData` are flipped.
24-
*/
2522
export interface ReadOptions<
26-
TVariables extends OperationVariables = OperationVariables,
27-
TData = unknown,
28-
> extends ReadFnOptions<TData, TVariables> {}
29-
export interface ReadFnOptions<
3023
TData = unknown,
3124
TVariables extends OperationVariables = OperationVariables,
3225
> {

0 commit comments

Comments
 (0)