wessberg / DI-compiler

A Custom Transformer for Typescript that enables compile-time Dependency Injection
MIT License
82 stars 7 forks source link

Is there a way to get compilation error when the service is not registered at all? #19

Open Serg046 opened 2 years ago

Serg046 commented 2 years ago

I cloned one of "used by" repo https://github.com/nialvi/pet-project-template, commented this line https://github.com/nialvi/pet-project-template/blob/main/src/random/composition.ts#L5 and had source code compiling (the error is run-time), however I wanted to see compilation failure. How can we achieve something like that?