Skip to content

Instantly share code, notes, and snippets.

@devdays
Created December 22, 2014 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devdays/42b9fbd8aabe1d5c9406 to your computer and use it in GitHub Desktop.
Save devdays/42b9fbd8aabe1d5c9406 to your computer and use it in GitHub Desktop.
TypeScript samples Exporting for Asynchronous Module Definition (AMD)
// app.ts
import MyClient = require('./client');
var myClient = new MyClient("Joe Smith", "My #1 client");
// client.ts
class Client {
constructor(public name: string, public description: string) { }
}
export = Client;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment