Suggestion: Only create global variable for module if something tangible is exported #8668
Labels
Suggestion
An idea for TypeScript
Too Complex
An issue which adding support for may be too complex for the value it adds
I think it would be great if when creating a module it would only create a global variable for that module if something tangible is exported. Whenever I use Typescript with angular I have no need for the global variable.
Nothing tangible is exported here so there is no need to create a global variable of "a".
The nice thing is I can still use the interfaces at design time because of the module and interface. But at runtime there is no need for the javascript variable to exist as it will just be an empty object anyway.
The text was updated successfully, but these errors were encountered: