Skip to content

Commit 73b8e91

Browse files
committed
🐛 Fix return type to void for "No content" http responses
1 parent 5a36405 commit 73b8e91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

starter/api/rest/src/view/rest/util/openapi.util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ type MimeContentValue<
170170
type OpenApiContentTypes<OpenApiContent extends Record<number, any>> = {
171171
[K in keyof OpenApiContent]: OpenApiContent[K] extends Content
172172
? MimeContentValue<ApiMimeTypes, OpenApiContent[K]>
173-
: never
173+
: void
174174
}[keyof OpenApiContent]
175175

176176
export type OperationParams<OperationId extends OperationIds> =

0 commit comments

Comments
 (0)