tw5-typed 0.1.2 → 0.1.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/widget.d.ts +2 -1
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.1.2",
5
+ "version": "0.1.3",
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
@@ -35,7 +35,8 @@ declare module 'tiddlywiki' {
35
35
  /**
36
36
  * Get parameters that user set in the widget
37
37
  * @param name attribute name, for example, `actions` in the button widget
38
+ * @param fallbackText default value if the attribute is not set
38
39
  */
39
- getAttribute(name: string): string;
40
+ getAttribute(name: string, fallbackText?: string): string;
40
41
  }
41
42
  }