tw5-typed 0.5.2 → 0.5.4
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
|
@@ -257,7 +257,10 @@ declare module '$:/core/modules/utils/utils.js' {
|
|
|
257
257
|
|
|
258
258
|
/**
|
|
259
259
|
* Format a date string based on a template.
|
|
260
|
-
*
|
|
260
|
+
* Use `"[UTC]YYYY0MM0DD0hh0mm0ss0XXX"` to format a standard tiddlywiki date string.
|
|
261
|
+
* See document for more formats.
|
|
262
|
+
*
|
|
263
|
+
* @url https://tiddlywiki.com/#DateFormat
|
|
261
264
|
* @param date - The date object to format.
|
|
262
265
|
* @param template - The template string to use for formatting.
|
|
263
266
|
* @returns The formatted date string.
|
|
@@ -294,7 +294,7 @@ declare module 'tiddlywiki' {
|
|
|
294
294
|
* @return parameters
|
|
295
295
|
* @memberof Widget
|
|
296
296
|
*/
|
|
297
|
-
getAttribute(name: string): string |
|
|
297
|
+
getAttribute(name: string): string | undefined;
|
|
298
298
|
getAttribute(name: string, fallbackText: string): string;
|
|
299
299
|
|
|
300
300
|
/**
|
package/src/tiddler/index.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ declare module 'tiddlywiki' {
|
|
|
4
4
|
export interface ITiddlerFields {
|
|
5
5
|
readonly [anyKey: string]: unknown;
|
|
6
6
|
readonly color?: string;
|
|
7
|
-
readonly 'color-scheme'
|
|
8
|
-
readonly created
|
|
7
|
+
readonly 'color-scheme'?: 'dark' | 'light';
|
|
8
|
+
readonly created?: Date;
|
|
9
9
|
readonly list?: string[];
|
|
10
|
-
readonly modified
|
|
11
|
-
readonly tags
|
|
10
|
+
readonly modified?: Date;
|
|
11
|
+
readonly tags?: string[];
|
|
12
12
|
readonly text: string;
|
|
13
13
|
readonly title: string;
|
|
14
14
|
readonly type: string;
|