Open gius opened 3 years ago
Other alternatives to consider. Especially if avoiding decorators is possible.
https://docs.deepkit.io/english/dependency-injection.html https://github.com/wessberg/DI https://github.com/nicojs/typed-inject https://github.com/typestack/typedi
If using https://github.com/wessberg/DI, there is no need to generate any configuration at all. Simple registration with lifetime scope is better done manually. However, the code generation needs to be adapted to Vite.
So far, https://github.com/nicojs/typed-inject seems like a good solution.
Support https://github.com/microsoft/tsyringe as alternative DI container