Skip to content

Commit

Permalink
Fix types and revert version of prom-bundle which requires express 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdean-digicatapult committed Dec 12, 2024
1 parent 8d77eec commit 2eab011
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 40 deletions.
50 changes: 14 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dotenv": "^16.4.7",
"envalid": "^8.0.0",
"express": "^4.21.2",
"express-prom-bundle": "^8.0.0",
"express-prom-bundle": "^7.0.0",
"knex": "^3.1.0",
"pg": "^8.13.1",
"pino": "^9.5.0",
Expand All @@ -56,9 +56,11 @@
"zod": "^3.23.8"
},
"devDependencies": {
"@digicatapult/tsimp": "^2.0.12",
"@types/chai": "^5.0.1",
"@types/compression": "^1.7.5",
"@types/cors": "^2.8.17",
"@types/express": "^4.0.0",
"@types/mocha": "^10.0.10",
"@types/node": "^20.17.9",
"@types/supertest": "^6.0.2",
Expand All @@ -72,7 +74,6 @@
"prettier": "^3.4.2",
"prettier-plugin-organize-imports": "^4.1.0",
"supertest": "^7.0.0",
"@digicatapult/tsimp": "^2.0.12",
"typescript": "^5.7.2"
}
}
4 changes: 2 additions & 2 deletions src/ioc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { IocContainer } from '@tsoa/runtime'
import { container } from 'tsyringe'

export const iocContainer: IocContainer = {
get: <T>(controller: { prototype: T }): T => {
return container.resolve<T>(controller as never)
get: (controller) => {
return container.resolve(controller as never)
},
}

0 comments on commit 2eab011

Please sign in to comment.