The follow constructs generate the same js and type hints. Is there any difference between the two, and when should one be used over the other?
Import alias:
import mod = require('./mod');
import Foo = mod.Foo;
var foo = new Foo();
Variable alias:
import mod = require('./mod');
var Foo = mod.Foo;
var foo = new Foo();
Output from both w/commonjs:
var mod = require('./mod');
var Foo = mod.Foo;
var foo = new Foo();