I find the documentation on using .toService(MyClass)
for transitive bindings confusing. The examples provided also show that achieving the same result is possible with a regular .to(MyClass)
.
https://github.com/inversify/InversifyJS/blob/master/wiki/transitive_bindings.md
Can someone explain a practical use case of .toService()
?