Patch Changes
-
#13385
bfb674eThanks @jerelmiller! - Fix accidental widening of theclient.mutatereturn type whenoptimisticResponsewas present. -
#13382
365373eThanks @jerelmiller! - Fix result types widened when a query's variables had constant types (e.g.TypedDocumentNode<Data, { type: "main" }>). This caused options such asreturnPartialDataorerrorPolicyto be reported as their widened types (e.g.boolean,ErrorPolicy) instead of the value that was passed which returned the wrongdataanddataStatetypes. -
#13382
365373eThanks @jerelmiller! - Fix issue where unknown options were permitted by TypeScript when passed alongside a valid option to APIs with modern signatures. -
#13383
5840f50Thanks @jerelmiller! - Update the return type ofrefetch,fetchMoreanduseLazyQuery'sexecutefunction on the providederrorPolicy. Previously these APIs all used the default type which typeddataasTData | undefinedanderrorasErrorLike | undefined.