We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfc00c commit 45c80c7Copy full SHA for 45c80c7
tests/fixtures/inversify-async/ioc.ts
@@ -1,4 +1,4 @@
1
-import { Container } from 'inversify';
+import { Container, interfaces } from 'inversify';
2
import { AsyncController } from './asyncController';
3
import { AsyncService } from './asyncService';
4
import { AsyncErrorController } from './asyncErrorController';
@@ -15,7 +15,7 @@ container.bind('error').toFactory(() => {
15
container.bind<AsyncErrorController>(AsyncErrorController).to(AsyncErrorController).inSingletonScope();
16
17
const iocContainer = {
18
- async get<T>(controller: { prototype: T }): Promise<T> {
+ async get<T>(controller: interfaces.ServivceIdentifier ): Promise<T> {
19
return container.get(controller);
20
},
21
};
0 commit comments