I'm using dependency injection with typescript, means that I can create an object in a module without importing the class (I'm importing an Injector instead which gives me the object instance I need). If I now want to provide a type for the receiving variable, I get a Unresolved type error. Any good solution for that?
Example
An object of type 'MainHelper' is returned by Injector.injectMainHelper(); but the type is unknown to the current module, because I haven't imported MainHelper (and I don't want to import it).
let mainHelper:MainHelper = Injector.injectMainHelper();
You can check the full code here.