##// END OF EJS Templates
Added tag v1.0.8 for changeset 1c7650c17856
Added tag v1.0.8 for changeset 1c7650c17856

File last commit:

r20:1c7650c17856 v1.0.8 default
r21:fcb40455df7f tip default
Show More
StoreTests.ts
27 lines | 693 B | video/mp2t | TypeScriptLexer
cin
Added events map support to _WidgetBase, corrected attributes map support in _WidgetBase
r2 import * as Memory from "dojo/store/Memory";
import * as Observable from "dojo/store/Observable";
cin
Initial commit, project structure.
r0
interface Schedule {
cin
updated _WidgetBase typings, added support for the generic type parameter to the constructor
r1 id?: string;
cin
Initial commit, project structure.
r0
title: string;
duration: number;
}
declare const store: dojo.store.api.Store<Schedule>;
const observable = new Observable(store);
cin
updated _WidgetBase typings, added support for the generic type parameter to the constructor
r1 const mem = new Memory<Schedule>();
cin
Added events map support to _WidgetBase, corrected attributes map support in _WidgetBase
r2 observable.query().observe(() => { });
store.query().forEach(() => { });
const total = await store.query().total;
cin
added type parameter to dojo.store.api.SortInformation,...
r20 const res1 = await store.query(undefined, { sort: [{ attribute: "duration", descending: true }] });
const res2 = await store.query(undefined, { sort: ({ duration: a }, { duration: b }) => a - b });
cin
updated _WidgetBase typings, added support for the generic type parameter to the constructor
r1
cin
Added events map support to _WidgetBase, corrected attributes map support in _WidgetBase
r2 mem.query();
cin
updated _WidgetBase typings, added support for the generic type parameter to the constructor
r1
cin
Added events map support to _WidgetBase, corrected attributes map support in _WidgetBase
r2 mem.add({ duration: 10, title: "Test event" });