Skip to content

Commit 1919185

Browse files
committed
Document promise return value of sync
1 parent db49c1a commit 1919185

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/javascript/data/datasource.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3845,6 +3845,10 @@ The `sync` method will request the remote service if:
38453845
* the [transport.destroy](#configuration-transport.destroy) option is set and data items have been removed from the data source
38463846
* the [transport.update](#configuration-transport.update) option is set and the data source contains updated data items
38473847

3848+
#### Returns
3849+
3850+
`Promise` A promise that will be resolved when all sync requests have finished succesfully, or rejected if any single request fails.
3851+
38483852
#### Example - save the changes
38493853

38503854
<script>

0 commit comments

Comments
 (0)