-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
SuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds
Description
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.
module a{
export interface IController{
}
angular.module("module").controller("controller", Controller);
class Controller{
}
}
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.
stowellt and anthony-tietjen-navex
Metadata
Metadata
Assignees
Labels
SuggestionAn idea for TypeScriptAn idea for TypeScriptToo ComplexAn issue which adding support for may be too complex for the value it addsAn issue which adding support for may be too complex for the value it adds