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.
- package/package.json +1 -1
- package/src/widget.d.ts +4 -0
package/package.json
CHANGED
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
|
*
|