tw5-typed 0.2.11 → 0.2.12

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/widget.d.ts +4 -0
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.11",
5
+ "version": "0.2.12",
6
6
  "url": "https://github.com/tiddly-gittly/tw5-typed",
7
7
  "homepage": "https://github.com/tiddly-gittly/tw5-typed",
8
8
  "bugs": {
package/src/widget.d.ts CHANGED
@@ -64,6 +64,10 @@ declare module 'tiddlywiki' {
64
64
  @param parseTreeNodes default to `this.parseTreeNode.children`, can be undefined
65
65
  */
66
66
  makeChildWidgets(parseTreeNodes?: IParseTreeNode[], options?: { variables?: unknown }): void;
67
+ /*
68
+ Initialise widget properties. These steps are pulled out of the constructor so that we can reuse them in subclasses
69
+ */
70
+ initialise(parseTreeNode: IParseTreeNode, options?: { document?: Document; parentWidget?: Widget; wiki?: ITiddlyWiki }): void;
67
71
  /**
68
72
  * Remove any DOM nodes created by this widget or its children
69
73
  *