| @@ -11,6 +11,21 The primary aims are | |||||
| 11 |
|
11 | |||
| 12 | ## Changes |
|
12 | ## Changes | |
| 13 |
|
13 | |||
|
|
14 | ### 1.0.3 | |||
|
|
15 | ||||
|
|
16 | Maintenance release | |||
|
|
17 | ||||
|
|
18 | * `dojo.store.api` replaced `dojo.promise.Promise<T>` with `PromiseLike<T>` type | |||
|
|
19 | ||||
|
|
20 | ### 1.0.2 | |||
|
|
21 | ||||
|
|
22 | Maintenance release | |||
|
|
23 | ||||
|
|
24 | * added type parameter to `Evented<T>`, `T` is the event map | |||
|
|
25 | * `_WidgetBase` `emit()` and `on()` are made more strict to accept only valid | |||
|
|
26 | event names, or explicit `any`. | |||
|
|
27 | * added `_setValueAttr` method to `_FormMixin` | |||
|
|
28 | ||||
| 14 | ### 1.0.1 |
|
29 | ### 1.0.1 | |
| 15 |
|
30 | |||
| 16 | Maintenance release |
|
31 | Maintenance release | |
| @@ -1,4 +1,3 | |||||
| 1 | /// <reference path="promise.d.ts" /> |
|
|||
| 2 | /// <reference path="data.d.ts" /> |
|
1 | /// <reference path="data.d.ts" /> | |
| 3 |
|
2 | |||
| 4 |
|
3 | |||
| @@ -245,22 +244,22 declare namespace dojo { | |||||
| 245 | /** |
|
244 | /** | |
| 246 | * Retrieves an object by its identity |
|
245 | * Retrieves an object by its identity | |
| 247 | */ |
|
246 | */ | |
| 248 |
get(id: Identity): |
|
247 | get(id: Identity): PromiseLike<T>; | |
| 249 |
|
248 | |||
| 250 | /** |
|
249 | /** | |
| 251 | * Stores an object |
|
250 | * Stores an object | |
| 252 | */ |
|
251 | */ | |
| 253 |
put(object: T, directives?: PutDirectives<T>): |
|
252 | put(object: T, directives?: PutDirectives<T>): PromiseLike<any>; | |
| 254 |
|
253 | |||
| 255 | /** |
|
254 | /** | |
| 256 | * Creates an object, throws an error if the object already exists |
|
255 | * Creates an object, throws an error if the object already exists | |
| 257 | */ |
|
256 | */ | |
| 258 |
add(object: T, directives?: PutDirectives<T>): |
|
257 | add(object: T, directives?: PutDirectives<T>): PromiseLike<any>; | |
| 259 |
|
258 | |||
| 260 | /** |
|
259 | /** | |
| 261 | * Deletes an object by its identity |
|
260 | * Deletes an object by its identity | |
| 262 | */ |
|
261 | */ | |
| 263 |
remove(id: string | number): |
|
262 | remove(id: string | number): PromiseLike<void>; | |
| 264 |
|
263 | |||
| 265 | } |
|
264 | } | |
| 266 |
|
265 | |||
| @@ -293,7 +292,7 declare namespace dojo { | |||||
| 293 | /** |
|
292 | /** | |
| 294 | * Retrieves an object by its identity |
|
293 | * Retrieves an object by its identity | |
| 295 | */ |
|
294 | */ | |
| 296 |
get(id: Identity): T | |
|
295 | get(id: Identity): T | PromiseLike<T>; | |
| 297 |
|
296 | |||
| 298 | /** |
|
297 | /** | |
| 299 | * Stores an object |
|
298 | * Stores an object | |
| @@ -308,7 +307,7 declare namespace dojo { | |||||
| 308 | /** |
|
307 | /** | |
| 309 | * Deletes an object by its identity |
|
308 | * Deletes an object by its identity | |
| 310 | */ |
|
309 | */ | |
| 311 |
remove(id: Identity): void | |
|
310 | remove(id: Identity): void | PromiseLike<void>; | |
| 312 |
|
311 | |||
| 313 | } |
|
312 | } | |
| 314 |
|
313 | |||
| @@ -349,12 +348,12 declare namespace dojo { | |||||
| 349 | /** |
|
348 | /** | |
| 350 | * Remove the object with the specific id. |
|
349 | * Remove the object with the specific id. | |
| 351 | */ |
|
350 | */ | |
| 352 |
remove(id: api.Identity): |
|
351 | remove(id: api.Identity): PromiseLike<void>; | |
| 353 |
|
352 | |||
| 354 | /** |
|
353 | /** | |
| 355 | * Remove the object with the given id from the underlying caching store. |
|
354 | * Remove the object with the given id from the underlying caching store. | |
| 356 | */ |
|
355 | */ | |
| 357 |
evict(id: api.Identity): |
|
356 | evict(id: api.Identity): PromiseLike<void>; | |
| 358 | } |
|
357 | } | |
| 359 |
|
358 | |||
| 360 | interface Cache { |
|
359 | interface Cache { | |
| @@ -475,7 +474,7 declare namespace dojo { | |||||
| 475 | * Retrieves an object by its identity. This will trigger a GET request to the server using |
|
474 | * Retrieves an object by its identity. This will trigger a GET request to the server using | |
| 476 | * the url `this.target + id`. |
|
475 | * the url `this.target + id`. | |
| 477 | */ |
|
476 | */ | |
| 478 |
get(id: api.Identity, options?: { headers: Headers } | Headers): |
|
477 | get(id: api.Identity, options?: { headers: Headers } | Headers): PromiseLike<T>; | |
| 479 |
|
478 | |||
| 480 | /** |
|
479 | /** | |
| 481 | * Defines the Accept header to use on HTTP requests |
|
480 | * Defines the Accept header to use on HTTP requests | |
| @@ -486,18 +485,18 declare namespace dojo { | |||||
| 486 | * Stores an object. This will trigger a PUT request to the server |
|
485 | * Stores an object. This will trigger a PUT request to the server | |
| 487 | * if the object has an id, otherwise it will trigger a POST request. |
|
486 | * if the object has an id, otherwise it will trigger a POST request. | |
| 488 | */ |
|
487 | */ | |
| 489 |
put(object: T, options?: JsonRestPutDirectives<T>): |
|
488 | put(object: T, options?: JsonRestPutDirectives<T>): PromiseLike<any>; | |
| 490 |
|
489 | |||
| 491 | /** |
|
490 | /** | |
| 492 | * Adds an object. This will trigger a PUT request to the server |
|
491 | * Adds an object. This will trigger a PUT request to the server | |
| 493 | * if the object has an id, otherwise it will trigger a POST request. |
|
492 | * if the object has an id, otherwise it will trigger a POST request. | |
| 494 | */ |
|
493 | */ | |
| 495 |
add(object: T, options?: JsonRestPutDirectives<T>): |
|
494 | add(object: T, options?: JsonRestPutDirectives<T>): PromiseLike<any>; | |
| 496 |
|
495 | |||
| 497 | /** |
|
496 | /** | |
| 498 | * Deletes an object by its identity. This will trigger a DELETE request to the server. |
|
497 | * Deletes an object by its identity. This will trigger a DELETE request to the server. | |
| 499 | */ |
|
498 | */ | |
| 500 |
remove(id: api.Identity, options?: { headers?: Headers }): |
|
499 | remove(id: api.Identity, options?: { headers?: Headers }): PromiseLike<void>; | |
| 501 |
|
500 | |||
| 502 | } |
|
501 | } | |
| 503 |
|
502 | |||
General Comments 0
You need to be logged in to leave comments.
Login now
