If external typescript modules don't have a module name, how do you avoid naming conflicts?
问题 This is a follow-on (sort of) to the question about the differences between internal and external modules. I want to use external modules as we're going to have a very large program. The problem is, if I create a class rectangle.ts: export class Rectangle { public x : number; public y : number; public width : number; public height : number; } And then access it using: import rectangle = require("rectangle"); // or is it "import rectangle = module("rectangle");"? var rect = new rectangle