Created
December 22, 2014 17:54
-
-
Save devdays/42b9fbd8aabe1d5c9406 to your computer and use it in GitHub Desktop.
TypeScript samples Exporting for Asynchronous Module Definition (AMD)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// app.ts | |
import MyClient = require('./client'); | |
var myClient = new MyClient("Joe Smith", "My #1 client"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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