Closed bajankristof closed 3 years ago
Hello please take a look at this project it may be useful for you!
I have created Reactive Extension Dependency Injection for Typescript you can check it out
Here is a GraphQL Framework build on top of it
https://github.com/Stradivario/gapi
Njoy! :)
Hi!
I'll be honest here, I did not dig deep into the module to find out the answer to my question so here we go:
If you try this, it will throw an error because
IoC.use
returns a function so the interpreter will try to run it with the async anonymous function as an argument. Obviously one could evade this issue by just putting a semicolon at the end ofIoC.use
but in a lot of workspaces the coding style requires us not to write those at the end of the lines.I hope that makes sense!