Skip to content

Commit

Permalink
fix(core): preferGetMethod type (#2758)
Browse files Browse the repository at this point in the history
* Update client.ts

* Create curvy-monkeys-collect.md

Co-authored-by: Jovi De Croock <[email protected]>
  • Loading branch information
c-schwan and JoviDeCroock authored Oct 22, 2022
1 parent 38dc226 commit 42e5b6f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curvy-monkeys-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@urql/core": patch
---

Update typings of the client to encompass the changes of https://github.com/FormidableLabs/urql/pull/2692
2 changes: 1 addition & 1 deletion packages/core/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface ClientOptions {
/** The default request policy for requests. */
requestPolicy?: RequestPolicy;
/** Use HTTP GET for queries. */
preferGetMethod?: boolean;
preferGetMethod?: boolean | 'force' | 'within-url-limit';
/** Mask __typename from results. */
maskTypename?: boolean;
}
Expand Down

0 comments on commit 42e5b6f

Please sign in to comment.