ts-di-starter
ts-di-starter copied to clipboard
Enjoyed the article!
Mark Seemans calls this approach Pure DI and it's a nice compromise between a complicated DI framework and just using singletons everywhere. This package might be worth checking out: https://www.github.com/thi-ng/umbrella/tree/develop/packages%2Fsystem to reduce the boilerplate a little in the serviced for (composition root). It's inspired by the components package from clojure and is very light weight.