Skip to content

Commit 71aab2c

Browse files
committed
Merge remote-tracking branch 'upstream/master' into 1714-rewriteRelativeImportExtensions-support
2 parents 30c83ef + f2f666e commit 71aab2c

File tree

5 files changed

+27
-15
lines changed

5 files changed

+27
-15
lines changed

packages/cli/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@
3333
"@tsoa/runtime": "^6.5.1",
3434
"@types/multer": "^1.4.12",
3535
"fs-extra": "^11.2.0",
36-
"glob": "^10.3.10",
36+
"glob": "^11.0.0",
3737
"handlebars": "^4.7.8",
38-
"merge-anything": "^5.1.4",
39-
"minimatch": "^9.0.1",
40-
"ts-deepmerge": "^7.0.1",
41-
"typescript": "^5.6.2",
38+
"merge-anything": "^5.1.7",
39+
"minimatch": "^10.0.1",
40+
"ts-deepmerge": "^7.0.2",
41+
"typescript": "^5.7.2",
4242
"validator": "^13.12.0",
43-
"yaml": "^2.5.1",
43+
"yaml": "^2.6.1",
4444
"yargs": "^17.7.1"
4545
},
4646
"devDependencies": {

packages/runtime/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
"license": "MIT",
3030
"dependencies": {
3131
"@hapi/boom": "^10.0.1",
32-
"@hapi/hapi": "^21.3.10",
32+
"@hapi/hapi": "^21.3.12",
3333
"@types/koa": "^2.15.0",
3434
"@types/multer": "^1.4.12",
35-
"express": "^4.21.0",
35+
"express": "^4.21.2",
3636
"reflect-metadata": "^0.2.2",
3737
"validator": "^13.12.0"
3838
},
3939
"devDependencies": {
4040
"@types/node": "^18.0.0",
4141
"@types/validator": "^13.12.2",
42-
"typescript": "^5.6.2"
42+
"typescript": "^5.7.2"
4343
},
4444
"repository": {
4545
"type": "git",

packages/runtime/src/interfaces/iocModule.ts

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,19 @@
1-
export interface IocContainer {
2-
get<T>(controller: { prototype: T }): T;
1+
export type Newable<
2+
T = unknown,
3+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4+
TArgs extends unknown[] = any[],
5+
> = new (...args: TArgs) => T;
6+
7+
export type ServiceIdentifier<T = unknown> =
8+
| string
9+
| symbol
10+
| Newable<T>
11+
// eslint-disable-next-line @typescript-eslint/ban-types
12+
| Function;
313

4-
get<T>(controller: { prototype: T }): Promise<T>;
14+
export interface IocContainer {
15+
get<T>(controller: ServiceIdentifier<T>): T;
16+
get<T>(controller: ServiceIdentifier<T>): Promise<T>;
517
}
618

719
// eslint-disable-next-line @typescript-eslint/no-explicit-any

packages/tsoa/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"@types/node": "^18.0.0",
36-
"typescript": "^5.6.2"
36+
"typescript": "^5.7.2"
3737
},
3838
"repository": {
3939
"type": "git",

tests/fixtures/inversify-async/ioc.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Container } from 'inversify';
1+
import { Container, interfaces } from 'inversify';
22
import { AsyncController } from './asyncController';
33
import { AsyncService } from './asyncService';
44
import { AsyncErrorController } from './asyncErrorController';
@@ -15,7 +15,7 @@ container.bind('error').toFactory(() => {
1515
container.bind<AsyncErrorController>(AsyncErrorController).to(AsyncErrorController).inSingletonScope();
1616

1717
const iocContainer = {
18-
async get<T>(controller: { prototype: T }): Promise<T> {
18+
async get<T>(controller: interfaces.ServiceIdentifier<T>): Promise<T> {
1919
return container.get(controller);
2020
},
2121
};

0 commit comments

Comments
 (0)