import Observable = require("dojo/store/Observable"); interface Schedule { id: string; title: string; duration: number; } declare const store: dojo.store.api.Store; const observable = new Observable(store); (async () => { observable.query().observe(() => {}); store.query().forEach(() => {}); const total = await store.query().total; const result = await store.query(); })();