In typescript, I can import another module namespace as follows:
namespace Shapes2 { import shapes = Shapes; var bar = new shapes.Bar(); }
However, I can just as easily access the namespace directly.
namespace Shapes3{ var shapes = Shapes; var bar = new shapes.Bar(); }
Is import useful something useful?
When do I want to type import , not var ?
javascript typescript
BanksySan
source share