tw5-typed 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "description": "Types for tiddlywiki",
3
3
  "license": "MIT",
4
4
  "name": "tw5-typed",
5
- "version": "0.3.4",
5
+ "version": "0.3.5",
6
6
  "url": "https://github.com/tiddly-gittly/tw5-typed",
7
7
  "homepage": "https://github.com/tiddly-gittly/tw5-typed",
8
8
  "bugs": {
@@ -20,6 +20,10 @@ declare module 'tiddlywiki' {
20
20
 
21
21
  export interface IBoot {
22
22
  argv: string[];
23
+ /**
24
+ * Parse any extra plugin references from `$tw.boot.argv[0]` that with `+` prefix.
25
+ */
26
+ extraPlugins: string[];
23
27
  boot: (callback?: () => void) => void;
24
28
  files: IBootFilesIndex;
25
29
  log: (logString: string) => void;
@@ -1,9 +1,34 @@
1
1
  declare module 'tiddlywiki' {
2
2
  export class Syncer {
3
+ pollTimerInterval: number;
3
4
  syncadaptor?: SyncAdaptor;
4
5
  /**
5
6
  Synchronise from the server by reading the skinny tiddler list and queuing up loads for any tiddlers that we don't already have up to date
6
7
  */
7
8
  syncFromServer(): void;
9
+ /**
10
+ Process the next task
11
+ */
12
+ processTaskQueue(): void;
13
+ /**
14
+ Update the document body with the class "tc-dirty" if the wiki has unsaved/unsynced changes
15
+ */
16
+ updateDirtyStatus(): void;
17
+ /**
18
+ Checks whether the wiki is dirty (ie the window shouldn't be closed)
19
+ */
20
+ isDirty(): boolean;
21
+ /**
22
+ * Return an array of the tiddler titles that are subjected to syncing
23
+ */
24
+ getSyncedTiddlers(): string[];
25
+ /**
26
+ * Get stringified revision number, for example, `'0'`.
27
+ */
28
+ getTiddlerRevision(title: string): string;
29
+ /**
30
+ * Read (or re-read) the latest tiddler info from the store
31
+ */
32
+ readTiddlerInfo(): void;
8
33
  }
9
34
  }