It seems that the information on how to actually structure code when writing Typescript is next to non-existent.
I want to make a server in node. It has external dependencies like socket.io. The server will be too big to put it all in one file (as I imagine is the case most of the time) so I figured I'd split it up. I want to have each class in a separate file and I want to be able to use them in the whole project without needing to do something crazy like
import vector = require("vector.ts");
var vec = new vector.Vector();
How do I do that? So far it seems that I'm fighting on two fronts. When I get tsc to actually compile, node complains on runtime, but when I modify the code so that node would work, it doesn't compile.
I'd appreciate if someone could take the time to go through this step by step.