Skip to content

Commit

Permalink
Add "OPTIONS" method to HttpMethod type (#323)
Browse files Browse the repository at this point in the history
* HttpMethod type has no 'OPTIONS' method

* Add "OPTIONS" method to "HttpMethod" type

* Update sour-schools-prove.md

---------

Co-authored-by: Igor Kamyşev <igor@kamyshev.me>
  • Loading branch information
abdullaev388 and igorkamyshev committed Jun 26, 2023
1 parent f8dcffc commit 55baa71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/sour-schools-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@farfetched/core': patch
---

Add `OPTIONS` method to allowed `HttpMethod`
3 changes: 2 additions & 1 deletion packages/core/src/fetch/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export type HttpMethod =
| 'PUT'
| 'PATCH'
| 'DELETE'
| 'QUERY';
| 'QUERY'
| 'OPTIONS';

export type RequestBody = Blob | BufferSource | FormData | string;

Expand Down

0 comments on commit 55baa71

Please sign in to comment.