Skip to content

Commit 77f0dbc

Browse files
committed
consumes is method
1 parent 93364d7 commit 77f0dbc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/runtime/src/decorators/parameter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ export function FormField(name?: string): ParameterDecorator {
130130
*
131131
* @link https://swagger.io/docs/specification/describing-request-body/
132132
*/
133-
export function Consumes(value: string): ParameterDecorator {
133+
export function Consumes(value: string): MethodDecorator {
134134
return () => {
135135
return;
136136
};

packages/runtime/src/decorators/response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function Res(): ParameterDecorator {
3535
*
3636
* @link https://swagger.io/docs/specification/media-types/
3737
*/
38-
export function Produces(value: string): MethodDecorator {
38+
export function Produces(value: string): MethodDecorator & ClassDecorator {
3939
return () => {
4040
return;
4141
};

0 commit comments

Comments
 (0)