Skip to content

Commit

Permalink
consumes is method
Browse files Browse the repository at this point in the history
  • Loading branch information
chappelo committed Sep 8, 2024
1 parent 93364d7 commit 77f0dbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/runtime/src/decorators/parameter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export function FormField(name?: string): ParameterDecorator {
*
* @link https://swagger.io/docs/specification/describing-request-body/
*/
export function Consumes(value: string): ParameterDecorator {
export function Consumes(value: string): MethodDecorator {
return () => {
return;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/decorators/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function Res(): ParameterDecorator {
*
* @link https://swagger.io/docs/specification/media-types/
*/
export function Produces(value: string): MethodDecorator {
export function Produces(value: string): MethodDecorator & ClassDecorator {
return () => {
return;
};
Expand Down

0 comments on commit 77f0dbc

Please sign in to comment.