diff --git a/src/react/types/types.ts b/src/react/types/types.ts index 0602bea4f77..f53a7600bc0 100644 --- a/src/react/types/types.ts +++ b/src/react/types/types.ts @@ -176,7 +176,7 @@ export interface MutationFunctionOptions< TVariables = OperationVariables > { variables?: TVariables; - optimisticResponse?: TData | ((vars: TVariables | {}) => TData); + optimisticResponse?: TData | ((vars: TVariables) => TData); refetchQueries?: Array | RefetchQueriesFunction; awaitRefetchQueries?: boolean; update?: MutationUpdaterFn;