Type Alias

Topics: Language Specification
Oct 30, 2012 at 2:27 PM
Edited Oct 30, 2012 at 2:27 PM

For more confortable syntax with modules it would be nice to have some kind of "type alias" :

module myModule {
    export class MyClass {
       
    }
}
alias MyClass = myModule.MyClass;

var instance:MyClass = new MyClass()
Coordinator
Oct 30, 2012 at 8:07 PM

There is a feature request in the issue tracker for this, in fact: http://typescript.codeplex.com/workitem/119