mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-24 13:30:55 -08:00
add release notes
This commit is contained in:
parent
25edc0b92d
commit
7d19067225
1 changed files with 43 additions and 0 deletions
43
editions/tw5.com/tiddlers/releasenotes/5.4.0/9117.md
Normal file
43
editions/tw5.com/tiddlers/releasenotes/5.4.0/9117.md
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
title: $:/changenotes/5.4.0/#9117
|
||||
description: Allow syncadaptors to batch sync
|
||||
release: 5.4.0
|
||||
tags: $:/tags/ChangeNote
|
||||
change-type: enhancement
|
||||
change-category: developer
|
||||
github-links: https://github.com/TiddlyWiki/TiddlyWiki5/pull/9117
|
||||
github-contributors: Arlen22
|
||||
|
||||
|
||||
Adds the following methods to the syncadapter interface.
|
||||
|
||||
```ts
|
||||
interface SyncAdapter {
|
||||
/** Callback for the sync adapter to call to request a poll */
|
||||
subscribe?(cb: () => void): void;
|
||||
|
||||
saveTiddlers?(options: {
|
||||
syncer: Syncer,
|
||||
tiddlers: Tiddler[],
|
||||
onNext: (title: string, adaptorInfo: any, revision: string) => void,
|
||||
onDone: () => void,
|
||||
onError: (err: Error) => void
|
||||
}): void;
|
||||
|
||||
loadTiddlers?(options: {
|
||||
syncer: Syncer,
|
||||
titles: string[],
|
||||
onNext: (tiddlerFields: TiddlerFields) => void,
|
||||
onDone: () => void,
|
||||
onError: (err: Error) => void
|
||||
}): void;
|
||||
|
||||
deleteTiddlers?(options: {
|
||||
syncer: Syncer,
|
||||
titles: string[],
|
||||
onNext: (title: string) => void,
|
||||
onDone: () => void,
|
||||
onError: (err: Error) => void
|
||||
}): void;
|
||||
}
|
||||
```
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue