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.Rectangle();
What happens if there's another Rectangle class out there? Do I need to worry about namespace conflicts? Or am I safe because I have the call to require and am using the .ts file to clearly specify the class and there is nothing put in the global namespace?