##// END OF EJS Templates
Corrected typings dijit/_WidgetBase, dojo/store
Corrected typings dijit/_WidgetBase, dojo/store

File last commit:

r2:1e22cac2aaf4 v1.0.0-rc1 default
r16:f6ff0b17b520 v1.0.5 default
Show More
StatefulTests.ts
25 lines | 461 B | video/mp2t | TypeScriptLexer
import * as Stateful from "dojo/Stateful";
import { StatefulAttrs, watch } from "./traits";
interface ScheduleAttrs {
title: string;
duration: number;
}
declare class Schedule extends Stateful<ScheduleAttrs> {
title: string;
}
const model = new Schedule({duration: 10, title: "Test event"});
model.get("title");
model.get("duration");
model.set("duration", 12);
watch(model, "duration", v => v);
declare const o : StatefulAttrs<Schedule>;