import * as Memory from "dojo/store/Memory"; import * as Observable from "dojo/store/Observable"; interface Schedule { id?: string; title: string; duration: number; } declare const store: dojo.store.api.Store; const observable = new Observable(store); const mem = new Memory(); observable.query().observe(() => { }); store.query().forEach(() => { }); const total = await store.query().total; const result = await store.query(); mem.query(); mem.add({ duration: 10, title: "Test event" });