StoreTests.ts
20 lines
| 420 B
| video/mp2t
|
TypeScriptLexer
cin
|
r0 | import Observable = require("dojo/store/Observable"); | |
interface Schedule { | |||
id: string; | |||
title: string; | |||
duration: number; | |||
} | |||
declare const store: dojo.store.api.Store<Schedule>; | |||
const observable = new Observable(store); | |||
(async () => { | |||
observable.query().observe(() => {}); | |||
store.query().forEach(() => {}); | |||
const total = await store.query().total; | |||
const result = await store.query(); | |||
})(); |