Skip to content

Commit

Permalink
Rename argument to unsafePreviousData in TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Feb 6, 2025
1 parent 9b1f108 commit 536cb47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/watchQueryOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export interface UpdateQueryMapFn<
* argument will be removed in the next major version of Apollo Client. Use
* `options.previousData` instead for a more type-safe value.
*/
previousData: Unmasked<TData>,
unsafePreviousData: Unmasked<TData>,
options: UpdateQueryOptions<TData, TVariables>
): Unmasked<TData> | void;
}
Expand All @@ -227,7 +227,7 @@ export type SubscribeToMoreUpdateQueryFn<
* argument will be removed in the next major version of Apollo Client. Use
* `options.previousData` instead for a more type-safe value.
*/
previousData: Unmasked<TData>,
unsafePreviousData: Unmasked<TData>,
options: UpdateQueryOptions<TData, TVariables> & {
subscriptionData: { data: Unmasked<TSubscriptionData> };
}
Expand Down

0 comments on commit 536cb47

Please # to comment.