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
|
@@ -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 {
|
package/src/wiki/index.d.ts
CHANGED
|
@@ -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,
|