We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c67b23 commit 23517a2Copy full SHA for 23517a2
.changeset/nine-pigs-reply.md
@@ -0,0 +1,5 @@
1
+---
2
+"openapi-typescript-helpers": patch
3
4
+
5
+Add RequestBodyJSON helper
packages/openapi-typescript-helpers/index.d.ts
@@ -78,6 +78,10 @@ export type SuccessResponseJSON<PathMethod> = JSONLike<
78
export type ErrorResponseJSON<PathMethod> = JSONLike<
79
ErrorResponse<ResponseObjectMap<PathMethod>>
80
>;
81
+/** Return JSON-like request body from a path + HTTP method */
82
+export type RequestBodyJSON<PathMethod> = JSONLike<
83
+ ResponseContent<OperationRequestBody<PathMethod>>
84
+>;
85
86
// Generic TS utils
87
0 commit comments