File tree Expand file tree Collapse file tree 5 files changed +4
-5
lines changed
packages/runtime/src/decorators Expand file tree Collapse file tree 5 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ module.exports = {
18
18
default : 'array-simple' ,
19
19
} ,
20
20
] ,
21
- '@typescript-eslint/ban-types' : 'off' ,
22
21
'@typescript-eslint/naming-convention' : [
23
22
'error' ,
24
23
{
Original file line number Diff line number Diff line change 1
- export function CustomAttribute ( _name : string , _value : string ) : Function {
1
+ export function CustomAttribute ( _name : string , _value : string ) : PropertyDecorator {
2
2
return ( ) => {
3
3
return ;
4
4
} ;
Original file line number Diff line number Diff line change 1
1
/**
2
2
* used to show a method as deprecated on swagger documentation
3
3
*/
4
- export function Deprecated ( ) : Function {
4
+ export function Deprecated ( ) : PropertyDecorator & ClassDecorator & ParameterDecorator {
5
5
return ( ) => {
6
6
return ;
7
7
} ;
Original file line number Diff line number Diff line change 1
- export function Example < T > ( exampleModel : T , exampleLabel ?: string ) : Function {
1
+ export function Example < T > ( exampleModel : T , exampleLabel ?: string ) : PropertyDecorator {
2
2
return ( ) => {
3
3
return ;
4
4
} ;
Original file line number Diff line number Diff line change 1
- export function Extension ( _name : string , _value : ExtensionType | ExtensionType [ ] ) : Function {
1
+ export function Extension ( _name : string , _value : ExtensionType | ExtensionType [ ] ) : PropertyDecorator {
2
2
return ( ) => {
3
3
return ;
4
4
} ;
You can’t perform that action at this time.
0 commit comments