如何在TypeScript中的Node-ORM2中定义模型?

在Node-ORM Wiki上,显示了在JS中定义模型的示例,如下所示:

var Person = db.define('person', { id : { type: "serial", key: true }, // autoincrementing primary key name : { type: "text" }, surname : { type: "text" }, age : { type: "number" } }, { methods : { fullName: function () { return this.name + " " + this.surname; } } }); 

我应该如何在TypeScript中做同样的事情?

(我知道在TypeScript中有orm模块: https : //github.com/dresende/node-orm2/blob/master/lib/TypeScript/orm.d.ts我只是不知道如何使用它,没有样品)。