Skip to content

Commit

Permalink
add options to Method type in generateApiClient function (#56)
Browse files Browse the repository at this point in the history
* add options to `Method` type in `generateApiClient` function

* chore: add changeset
  • Loading branch information
kyng-cytro authored Nov 8, 2024
1 parent 146f110 commit 739e5b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/tall-bees-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"typed-openapi": minor
---

Add options to `Method` type in `generateApiClient` function as fix for
[#55](https://github.com/astahmer/typed-openapi/issues/55)
2 changes: 1 addition & 1 deletion packages/typed-openapi/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export type EndpointParameters = {
};
export type MutationMethod = "post" | "put" | "patch" | "delete";
export type Method = "get" | "head" | MutationMethod;
export type Method = "get" | "head" | "options" | MutationMethod;
type RequestFormat = "json" | "form-data" | "form-url" | "binary" | "text";
Expand Down

0 comments on commit 739e5b5

Please sign in to comment.