tw5-typed 1.0.5 → 1.1.0
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 +4 -4
- package/src/index.d.ts +1 -1
- package/src/modules/syncer/syncAdaptor.d.ts +25 -2
- package/src/modules/widgets/index.d.ts +0 -0
- package/src/modules/wiki.d.ts +645 -21
- package/src/wiki/index.d.ts +0 -644
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tw5-typed",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"check": "tsc --noEmit && eslint src/**/*.ts test/**/*.ts",
|
|
6
6
|
"docs": "docs-ts",
|
|
@@ -63,14 +63,14 @@
|
|
|
63
63
|
"dprint": "^0.50.2",
|
|
64
64
|
"eslint-config-tidgi": "^2.2.0",
|
|
65
65
|
"husky": "^9.1.7",
|
|
66
|
-
"lint-staged": "^16.2.
|
|
66
|
+
"lint-staged": "^16.2.7",
|
|
67
67
|
"npm-check-updates": "^19.1.2",
|
|
68
68
|
"prism-react-renderer": "^2.4.1",
|
|
69
69
|
"react": "^19.2.0",
|
|
70
|
-
"rimraf": "^6.1.
|
|
70
|
+
"rimraf": "^6.1.2",
|
|
71
71
|
"tiddlywiki": "^5.3.8",
|
|
72
72
|
"type-fest": "^5.2.0",
|
|
73
|
-
"typedoc": "^0.28.
|
|
73
|
+
"typedoc": "^0.28.15",
|
|
74
74
|
"typedoc-plugin-markdown": "^4.9.0",
|
|
75
75
|
"typescript": "^5.9.3",
|
|
76
76
|
"zx": "^8.8.5"
|
package/src/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/// <reference path="./utils/Crypto.d.ts" />
|
|
7
7
|
/// <reference path="./utils/PasswordPrompt.d.ts" />
|
|
8
8
|
/// <reference path="./utils/index.d.ts" />
|
|
9
|
-
/// <reference path="./wiki
|
|
9
|
+
/// <reference path="./modules/wiki.d.ts" />
|
|
10
10
|
/// <reference path="./modules/index.d.ts" />
|
|
11
11
|
/// <reference path="./modules/filters/index.d.ts" />
|
|
12
12
|
/// <reference path="./modules/indexers/index.d.ts" />
|
|
@@ -5,10 +5,33 @@ declare module 'tiddlywiki' {
|
|
|
5
5
|
*/
|
|
6
6
|
export interface SyncAdaptor {
|
|
7
7
|
getTiddlerFileInfo(
|
|
8
|
-
|
|
8
|
+
tiddler: Tiddler,
|
|
9
9
|
callback: (error: Error | null | string, fileInfo: IFileInfo) => void,
|
|
10
10
|
): void;
|
|
11
|
-
getTiddlerInfo(
|
|
11
|
+
getTiddlerInfo(tiddler: Tiddler): IFileInfo | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Save a tiddler and invoke the callback with (err, adaptorInfo, revision)
|
|
14
|
+
*/
|
|
15
|
+
saveTiddler(
|
|
16
|
+
tiddler: Tiddler,
|
|
17
|
+
callback: (error: Error | null | string, adaptorInfo?: IFileInfo | null, revision?: string) => void,
|
|
18
|
+
options?: { tiddlerInfo?: Record<string, unknown> },
|
|
19
|
+
): void;
|
|
20
|
+
/**
|
|
21
|
+
* Load a tiddler and invoke the callback with (err, tiddlerFields)
|
|
22
|
+
*/
|
|
23
|
+
loadTiddler(
|
|
24
|
+
title: string,
|
|
25
|
+
callback: (error: Error | null | string, tiddlerFields?: Record<string, unknown> | null) => void,
|
|
26
|
+
): void;
|
|
27
|
+
/**
|
|
28
|
+
* Delete a tiddler and invoke the callback with (err)
|
|
29
|
+
*/
|
|
30
|
+
deleteTiddler(
|
|
31
|
+
title: string,
|
|
32
|
+
callback: (error: Error | null | string, adaptorInfo?: IFileInfo | null) => void,
|
|
33
|
+
options?: unknown,
|
|
34
|
+
): void;
|
|
12
35
|
/**
|
|
13
36
|
* Retrieves the titles of tiddlers that need to be updated from the server.
|
|
14
37
|
|
|
File without changes
|