Skip to content

Commit 93364d7

Browse files
committed
decorators
1 parent d70f578 commit 93364d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/runtime/src/decorators/response.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export function Response<ExampleType, HeaderType extends IsValidHeader<HeaderTyp
1212
description?: string,
1313
example?: ExampleType,
1414
produces?: string | string[],
15-
): ClassDecorator {
15+
): MethodDecorator & ClassDecorator {
1616
return () => {
1717
return;
1818
};

packages/runtime/src/decorators/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export function Route(name?: string): ClassDecorator {
77
/**
88
* can be used to entirely hide an method from documentation
99
*/
10-
export function Hidden(): ClassDecorator & MethodDecorator {
10+
export function Hidden(): ClassDecorator & MethodDecorator & ParameterDecorator {
1111
return () => {
1212
return;
1313
};

0 commit comments

Comments
 (0)