We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Method
generateApiClient
1 parent 146f110 commit 739e5b5Copy full SHA for 739e5b5
.changeset/tall-bees-impress.md
@@ -0,0 +1,6 @@
1
+---
2
+"typed-openapi": minor
3
4
+
5
+Add options to `Method` type in `generateApiClient` function as fix for
6
+[#55](https://github.com/astahmer/typed-openapi/issues/55)
packages/typed-openapi/src/generator.ts
@@ -234,7 +234,7 @@ export type EndpointParameters = {
234
};
235
236
export type MutationMethod = "post" | "put" | "patch" | "delete";
237
-export type Method = "get" | "head" | MutationMethod;
+export type Method = "get" | "head" | "options" | MutationMethod;
238
239
type RequestFormat = "json" | "form-data" | "form-url" | "binary" | "text";
240
0 commit comments