tw5-typed 0.3.3 → 0.3.4

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.3",
5
+ "version": "0.3.4",
6
6
  "url": "https://github.com/tiddly-gittly/tw5-typed",
7
7
  "homepage": "https://github.com/tiddly-gittly/tw5-typed",
8
8
  "bugs": {
package/src/core.d.ts CHANGED
@@ -27,6 +27,12 @@ declare module 'tiddlywiki' {
27
27
  Wiki: typeof Wiki;
28
28
  Story: typeof Story;
29
29
  Tiddler: typeof Tiddler;
30
+ syncadaptor?: SyncAdaptor;
31
+ /**
32
+ * Presents when we have $tw.syncadaptor
33
+ */
34
+ syncer?: Syncer;
35
+ Syncer: { new(): Syncer };
30
36
 
31
37
  wiki: Wiki;
32
38
  boot: IBoot;
@@ -43,7 +49,6 @@ declare module 'tiddlywiki' {
43
49
  fakeDocument: IFakeDocument;
44
50
  passwordPrompt: PasswordPrompt;
45
51
  packageInfo: Record<string, unknown>;
46
- syncadaptor: SyncAdaptor;
47
52
 
48
53
  /**
49
54
  * Check for this window being the source of the drag. If true, some drop target widget will stop responding to the drop event, so you can handle drop event in your own widget.
@@ -18,6 +18,6 @@ declare module 'tiddlywiki' {
18
18
  /**
19
19
  * A basic logging implementation
20
20
  */
21
- Logger: Logger;
21
+ Logger: { new(loggerName: string): Logger};
22
22
  }
23
23
  }