tw5-typed 0.2.24 → 0.2.25

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.2.24",
5
+ "version": "0.2.25",
6
6
  "url": "https://github.com/tiddly-gittly/tw5-typed",
7
7
  "homepage": "https://github.com/tiddly-gittly/tw5-typed",
8
8
  "bugs": {
@@ -16,6 +16,9 @@
16
16
  "files": [
17
17
  "src/"
18
18
  ],
19
+ "scripts": {
20
+ "check": "tsc --noEmit && eslint src/**/*.ts"
21
+ },
19
22
  "husky": {
20
23
  "hooks": {
21
24
  "pre-commit": "lint-staged"
@@ -42,8 +45,5 @@
42
45
  "@types/codemirror": "^5.60.6",
43
46
  "@types/echarts": "^4.9.16",
44
47
  "@types/node": "^18.11.9"
45
- },
46
- "scripts": {
47
- "check": "tsc --noEmit && eslint src/**/*.ts"
48
48
  }
49
- }
49
+ }
@@ -112,7 +112,7 @@ As with [JavaScript Macros](#JavaScript%20Macros), filter operators should not m
112
112
  });
113
113
  ```
114
114
  */
115
- export type SourceIterator = (tiddler: Tiddler, title: string) => void;
115
+ export type SourceIterator = (callback: (tiddler: Tiddler, title: string) => void) => void;
116
116
  export interface ISearchOptions {
117
117
  /** If true, forces all but regexp searches to be anchored to the start of text */
118
118
  anchored?: boolean;
File without changes
@@ -67,7 +67,7 @@ declare module 'tiddlywiki' {
67
67
  */
68
68
  compileFilter(
69
69
  filterString: string,
70
- ): (source?: SourceIterator, widget?: Widget) => string[];
70
+ ): (source?: SourceIterator | string[] | Record<string, unknown>, widget?: Widget) => string[];
71
71
  /**
72
72
  *
73
73
  * @param filterString