I've used Backbone Relational before, but not with Typescript, and I'm having trouble getting started:
/// <reference path="../Typings/backbone.d.ts"/>
/// <reference path="../Typings/backbone.relational.d.ts"/>
module Application.Models {
export class Entity extends Backbone.RelationalModel {
constructor(options?) {
super(options);
}
}
}
var e = new Models.Entity()
This throws an error:
Uncaught TypeError: Object function Entity() {
_super.call(this);
} has no method 'initializeModelHierarchy'
UPDATE:
I found this in the Backbone Relational docs that says that setup() will not be automatically called when using CoffeeScript syntax. Could this be related to my Typescript issue? If so, where in my typescript do you think I could call setup?