Skip to content

Commit 6d90053

Browse files
authored
style(common): Added return types to Controller decorator overloads
This results in properly generated d.ts files, from which tslint won't complain about no-unsafe-any in controllers.
1 parent af54516 commit 6d90053

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/common/decorators/core/controller.decorator.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export interface ControllerOptions extends ScopeOptions {
3636
*
3737
* @publicApi
3838
*/
39-
export function Controller();
39+
export function Controller(): ClassDecorator;
4040

4141
/**
4242
* Decorator that marks a class as a Nest controller that can receive inbound
@@ -61,7 +61,7 @@ export function Controller();
6161
*
6262
* @publicApi
6363
*/
64-
export function Controller(prefix: string);
64+
export function Controller(prefix: string): ClassDecorator;
6565

6666
/**
6767
* Decorator that marks a class as a Nest controller that can receive inbound
@@ -91,7 +91,7 @@ export function Controller(prefix: string);
9191
*
9292
* @publicApi
9393
*/
94-
export function Controller(options: ControllerOptions);
94+
export function Controller(options: ControllerOptions): ClassDecorator;
9595

9696
/**
9797
* Decorator that marks a class as a Nest controller that can receive inbound

0 commit comments

Comments
 (0)