Skip to content

Commit 45c80c7

Browse files
committed
use ServiceIdentifier from inversift
1 parent ecfc00c commit 45c80c7

File tree

1 file changed

+2
-2
lines changed
  • tests/fixtures/inversify-async

1 file changed

+2
-2
lines changed

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.ServivceIdentifier ): Promise<T> {
1919
return container.get(controller);
2020
},
2121
};

0 commit comments

Comments
 (0)