tw5-typed 0.2.26 → 0.2.27

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.26",
5
+ "version": "0.2.27",
6
6
  "url": "https://github.com/tiddly-gittly/tw5-typed",
7
7
  "homepage": "https://github.com/tiddly-gittly/tw5-typed",
8
8
  "bugs": {
@@ -114,7 +114,7 @@ As with [JavaScript Macros](#JavaScript%20Macros), filter operators should not m
114
114
 
115
115
  Construct the iterator using $tw.wiki.makeTiddlerIterator
116
116
  */
117
- export type SourceIterator = (callback: (tiddler: Tiddler, title: string) => void) => void;
117
+ export type SourceIterator = (tiddler: Tiddler, title: string) => void;
118
118
  export interface ISearchOptions {
119
119
  /** If true, forces all but regexp searches to be anchored to the start of text */
120
120
  anchored?: boolean;
@@ -114,5 +114,5 @@ declare module 'tiddlywiki' {
114
114
  request: Http.ClientRequest & Http.InformationEvent,
115
115
  response: Http.ServerResponse,
116
116
  context: ServerEndpointContext & T,
117
- ) => void;
117
+ ) => void | Promise<void>;
118
118
  }