diff --git a/packages/runtime/src/decorators/parameter.ts b/packages/runtime/src/decorators/parameter.ts index ac7a2cfb4..478c3b20f 100644 --- a/packages/runtime/src/decorators/parameter.ts +++ b/packages/runtime/src/decorators/parameter.ts @@ -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; }; diff --git a/packages/runtime/src/decorators/response.ts b/packages/runtime/src/decorators/response.ts index c0bc3ee0b..3362d0901 100644 --- a/packages/runtime/src/decorators/response.ts +++ b/packages/runtime/src/decorators/response.ts @@ -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; };