@travetto/di
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -24,3 +24,3 @@ { | ||
}, | ||
"version": "0.0.23" | ||
"version": "0.0.24" | ||
} |
@@ -210,2 +210,4 @@ import { Dependency, InjectableConfig, ClassTarget, InjectableFactoryConfig } from '../types'; | ||
async getInstance<T>(target: ClassTarget<T>, qualifier: symbol = DEFAULT_INSTANCE): Promise<T> { | ||
this.verifyInitialized(); | ||
const targetId = target.__id; | ||
@@ -212,0 +214,0 @@ if (!this.instances.has(targetId) || !this.instances.get(targetId)!.has(qualifier)) { |
30880
832