Simple TypeScript AMD Example

I have been hard at work building a web application based on TypeScript. TypeScript is just a blessing, but it took me a while to get the AMD part just right.

It is important to keep every class in its own file and exporting it later:

Here is an example:

If you are building an SPA application with TypeScript, the new RavenDB is great inspiration: Raven Studio HTML5