Sunday, 19 January 2020

I'm working on a DI container for TS (early wip)

Hi there, I'm working on a dependency injection container for TypeScript that supports autowiring for interfaces, array of types and generics without having to use tokens or anything.Since TS doesn't expose the type information at runtime, the only option would be to use the compiler api to extract the types and generate mapping code (e.g. service providers)Currently I've partly managed to create the code generation but I have some issues with how to handle generics.Anyway, I've posted on the sub because I wanted to extract a list of must have features (and if the generics support is a must) so any feedback on what kind of features you wish the library should have would be appreciated.

Submitted January 19, 2020 at 02:48PM by Bogdanuu

No comments:

Post a Comment