DEV Community

Discussion on: Typescript Dependency Injection in 200 LOC

Collapse
 
mindplay profile image
Rasmus Schultz

See also this much more minimalist approach - 10 lines of code and no dependencies:

dev.to/mindplay/minimal-di-contain...

I only wish I could figure out how to type-hint it correctly. (I don't even know that it's possible - short of manually typing out the interfaces, but it really ought to be possible with inference...)