Skip to content

Commit

Permalink
Merge branch 'master' into feat/reflect-static-methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ktutnik committed Dec 5, 2022
2 parents 7667cc7 + 4b96e88 commit 1bd18fd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/reflect/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface ParameterPropertyReflection extends PropertyReflection {
isParameter: boolean
}
export interface MethodReflection extends ReflectionBase {
kind: "Method",
kind: "Method" | "StaticMethod",
parameters: ParameterReflection[],
returnType: any,
decorators: any[],
Expand Down
16 changes: 8 additions & 8 deletions packages/reflect/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"extends": "./tsconfig.json",
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"target": "es6",
"outDir": "lib",
"declaration": true,
"inlineSourceMap": false
"declaration": true,
"rootDir": "src",
"outDir": "lib",
"sourceMap": false
},
"exclude": [
"test",
"lib"
"test",
"lib"
]
}
}
2 changes: 1 addition & 1 deletion packages/swagger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"@types/swagger-ui-dist": "^3.30.1",
"ejs": "^3.1.8",
"openapi3-ts": "^2.0.2",
"swagger-ui-dist": "3.52.5"
"swagger-ui-dist": "^4.15.5"
},
"devDependencies": {
"cpy-cli": "^3.1.1"
Expand Down
2 changes: 1 addition & 1 deletion tests/manual/swagger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class UsersController {
@route.get("")
@meta.type([User])
get(@api.description("Lorem ipsum dolor sit amet") @val.required() id: string) {
return 12
return [{ email: "abc@test.com", name: "Abc" }]
}
}

Expand Down
3 changes: 2 additions & 1 deletion tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"useUnknownInCatchVariables": false
"useUnknownInCatchVariables": false,
"skipLibCheck": true
}
}

0 comments on commit 1bd18fd

Please sign in to comment.