##// END OF EJS Templates
updated _WidgetBase typings, added support for the generic type parameter to the constructor
updated _WidgetBase typings, added support for the generic type parameter to the constructor

File last commit:

r0:ab570232df7d default
r1:d55cc09feba1 default
Show More
StatefulTests.ts
20 lines | 334 B | video/mp2t | TypeScriptLexer
import Stateful = require("dojo/Stateful");
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);