tw5-typed 0.6.2 → 0.6.3
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
|
@@ -376,7 +376,7 @@ declare module 'tiddlywiki' {
|
|
|
376
376
|
*/
|
|
377
377
|
addEventListeners(
|
|
378
378
|
listeners: Array<{
|
|
379
|
-
handler: (event: IWidgetEvent) => undefined | Promise<void> | boolean
|
|
379
|
+
handler: (event: IWidgetEvent) => undefined | Promise<void> | boolean;
|
|
380
380
|
type: string;
|
|
381
381
|
}>,
|
|
382
382
|
): void;
|
|
@@ -389,7 +389,7 @@ declare module 'tiddlywiki' {
|
|
|
389
389
|
*/
|
|
390
390
|
addEventListener(
|
|
391
391
|
type: string,
|
|
392
|
-
handler: (event: IWidgetEvent) => undefined | Promise<void> | boolean
|
|
392
|
+
handler: (event: IWidgetEvent) => undefined | Promise<void> | boolean,
|
|
393
393
|
): void;
|
|
394
394
|
|
|
395
395
|
/**
|
|
@@ -462,7 +462,7 @@ declare module 'tiddlywiki' {
|
|
|
462
462
|
/**
|
|
463
463
|
* @en
|
|
464
464
|
* Invoke the action widgets defined in a string
|
|
465
|
-
*
|
|
465
|
+
*
|
|
466
466
|
* This calls `invokeActions` under the hood
|
|
467
467
|
*
|
|
468
468
|
* @param {string} actions
|
|
@@ -480,6 +480,11 @@ declare module 'tiddlywiki' {
|
|
|
480
480
|
): boolean;
|
|
481
481
|
|
|
482
482
|
removeLocalDomNodes(): void;
|
|
483
|
+
|
|
484
|
+
/**
|
|
485
|
+
* Make a fake widget with specified variables, suitable for variable lookup in filters
|
|
486
|
+
*/
|
|
487
|
+
makeFakeWidgetWithVariables(variables: Record<string, string>): Widget;
|
|
483
488
|
}
|
|
484
489
|
}
|
|
485
490
|
|