You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import{ContainerClass}from'@all-in-js/injector';constinitDeps={key: functionkey(){}};constcontainer=newContainerClass(initDeps);container.add(classTestService{});container.resolve(['TestService','key'],function(testService,key){});// orconst[testService]=container.resolve('TestService');// this `container.resolve` support various types, eg:// `container.resolve(string[array<string>[function]])` // if argument just is a function, it's arguments would be parsed to be an array to be resolved.