import Stateful = require("dojo/Stateful"); interface ScheduleAttrs { title: string; duration: number; } declare class Schedule extends Stateful { title: string; } const model = new Schedule({duration: 10, title: "Test event"}); model.get("title"); model.get("duration"); model.set("duration", 12);