Skip to content

Instantly share code, notes, and snippets.

@abergs
Created February 24, 2014 21:13
Show Gist options
  • Save abergs/9197217 to your computer and use it in GitHub Desktop.
Save abergs/9197217 to your computer and use it in GitHub Desktop.
Typescript AMD example
class MyModel {
public ID: number;
public Value: string;
}
export = MyModel;
import MyModel = require("MyModel");
class MyModelConsumer {
public currentModel: MyModel;
constructor() {
this.currentModel = new MyModel();
}
}
export = MyModelConsumer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment