Skip to content

Commit

Permalink
Fix type of updateQuery in hoc
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Feb 6, 2025
1 parent 4fe89b1 commit 01f09ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/react/hoc/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import type {
FetchMoreQueryOptions,
OperationVariables,
SubscribeToMoreOptions,
UpdateQueryFn,
UpdateQueryMapFn,
} from "../../core/index.js";
import type {
MutationFunction,
Expand All @@ -33,7 +33,7 @@ export interface QueryControls<
startPolling: (pollInterval: number) => void;
stopPolling: () => void;
subscribeToMore: (options: SubscribeToMoreOptions) => () => void;
updateQuery: UpdateQueryFn<TData, any>;
updateQuery: (mapFn: UpdateQueryMapFn<TData, TGraphQLVariables>) => void;
}

export type DataValue<
Expand Down

0 comments on commit 01f09ba

Please sign in to comment.