tw5-typed 0.2.25 → 0.2.26

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.25",
5
+ "version": "0.2.26",
6
6
  "url": "https://github.com/tiddly-gittly/tw5-typed",
7
7
  "homepage": "https://github.com/tiddly-gittly/tw5-typed",
8
8
  "bugs": {
@@ -111,6 +111,8 @@ As with [JavaScript Macros](#JavaScript%20Macros), filter operators should not m
111
111
  include = !include;
112
112
  });
113
113
  ```
114
+
115
+ Construct the iterator using $tw.wiki.makeTiddlerIterator
114
116
  */
115
117
  export type SourceIterator = (callback: (tiddler: Tiddler, title: string) => void) => void;
116
118
  export interface ISearchOptions {
@@ -74,6 +74,10 @@ declare module 'tiddlywiki' {
74
74
  * @param widget an optional widget node for retrieving the current tiddler etc.
75
75
  * @param source an iterator function for the source tiddlers, called source(iterator), where iterator is called as iterator(tiddler,title)
76
76
  */
77
+ /**
78
+ * Returns a function iterator(callback) that iterates through the specified titles, and invokes the callback with callback(tiddler,title)
79
+ */
80
+ makeTiddlerIterator(titles: string[]): SourceIterator;
77
81
  filterTiddlers(
78
82
  filterString: string,
79
83
  widget?: Widget,