tw5-typed 0.0.3 → 0.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/tw.d.ts +5 -1
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.0.3",
5
+ "version": "0.0.4",
6
6
  "url": "https://github.com/tiddly-gittly/tw5-typed",
7
7
  "types": "src/index.d.ts",
8
8
  "files": [
package/src/tw.d.ts CHANGED
@@ -11,6 +11,7 @@ export interface ITiddlerFields {
11
11
  text: string;
12
12
  title: string;
13
13
  type: string;
14
+ [anyKey: string]: unknown;
14
15
  }
15
16
 
16
17
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
@@ -38,7 +39,10 @@ export interface I$TW {
38
39
  hooks: { addHook: (hookName: string, callback: (...arguments_: any[]) => unknown) => void };
39
40
  wiki: {
40
41
  getTiddler: (title: string) => ITiddler | undefined;
41
- getTiddlers: () => ITiddler[];
42
+ /**
43
+ * Get full list of tiddler titles in the wiki
44
+ */
45
+ getTiddlers: () => string[];
42
46
  };
43
47
  utils: Record<string, any>;
44
48
  }