更新时间:2022-12-23 11:39:58
我尚未在TypeScript / ES6中将DI用于生产(尚未),因为它们尚未完成。
I don't use DI in TypeScript/ES6 for production (yet) because they are not yet finalized.
为了进行实验,我使用了 needlepoint
For experimenting, I used needlepoint which was at the time I was using ES6.
但是对于打字稿, typescript-ioc 看起来更合适。它同时具有IOC和DI。
But for typescript, typescript-ioc looks like it's a better candidate. It has both IOC and DI.