4 ms·
Do you get “intellisense” on the injected services?
by gkop 5y ago
Do you get “intellisense” on the injected services?
- komon 5y agoAs long as the service container's members are typed you should
- gkop 5y agoThanks. I ask because at work we use this [0] “legacy” Node DI framework which utterly and completely breaks intellisense. [0] https://www.npmjs.com/package/dependable https://www.npmjs.com/package/dependable
- crooked-v 5y agoTake a look at tsyringe[1] instead. [1]: https://github.com/Microsoft/tsyringe https://github.com/Microsoft/tsyringe
- yasserf 5y agoYeah due to the Services and CoreServices functions being completely typed we have intellisense on everything in vramework. Down to the database tables and column names in queries (when using typed-postgres or typed-mysql libraries) https://vramework.io/design/#typescript-everywhere https://vramework.io/design/#typescript-everywhere