Skip to content

Commit

Permalink
refactor: property decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
chappelo committed Sep 8, 2024
1 parent 553cab3 commit 4749590
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module.exports = {
default: 'array-simple',
},
],
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/naming-convention': [
'error',
{
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/decorators/customAttribute.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function CustomAttribute(_name: string, _value: string): Function {
export function CustomAttribute(_name: string, _value: string): PropertyDecorator {
return () => {
return;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/decorators/deprecated.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* used to show a method as deprecated on swagger documentation
*/
export function Deprecated(): Function {
export function Deprecated(): PropertyDecorator & ClassDecorator & ParameterDecorator {
return () => {
return;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/decorators/example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function Example<T>(exampleModel: T, exampleLabel?: string): Function {
export function Example<T>(exampleModel: T, exampleLabel?: string): PropertyDecorator {
return () => {
return;
};
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/src/decorators/extension.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export function Extension(_name: string, _value: ExtensionType | ExtensionType[]): Function {
export function Extension(_name: string, _value: ExtensionType | ExtensionType[]): PropertyDecorator {
return () => {
return;
};
Expand Down

0 comments on commit 4749590

Please sign in to comment.