tw5-typed 0.2.13 → 0.2.14
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/Wiki.d.ts +2 -2
- package/src/widget.d.ts +3 -1
package/package.json
CHANGED
package/src/Wiki.d.ts
CHANGED
|
@@ -69,11 +69,11 @@ declare module 'tiddlywiki' {
|
|
|
69
69
|
* Create or update tiddler.
|
|
70
70
|
* Update existed tiddler based on the title field.
|
|
71
71
|
*/
|
|
72
|
-
addTiddler: (tiddler: Tiddler | Partial<ITiddlerFieldsParam>) => void;
|
|
72
|
+
addTiddler: (tiddler: Tiddler | Partial<ITiddlerFieldsParam> | Partial<ITiddlerFields>) => void;
|
|
73
73
|
/**
|
|
74
74
|
* Call `addTiddler` for each iton of the list, but should passing `tiddler.fields`, directly passing tiddler object may failed to add in some cases.
|
|
75
75
|
*/
|
|
76
|
-
addTiddlers: (tiddler: Array<Partial<ITiddlerFieldsParam>>) => void;
|
|
76
|
+
addTiddlers: (tiddler: Array<Partial<ITiddlerFieldsParam>| Partial<ITiddlerFields>>) => void;
|
|
77
77
|
/**
|
|
78
78
|
* Get tiddler's text field, with an optional default text.
|
|
79
79
|
* If have _is_skinny field, will just return null (this is a rare case, so not put in the return type for now).
|
package/src/widget.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ declare module 'tiddlywiki' {
|
|
|
4
4
|
* Key is tiddler title
|
|
5
5
|
*/
|
|
6
6
|
export type IChangedTiddlers = Record<string, IChangedTiddlersMeta>;
|
|
7
|
+
/** Only one of these fields will be `true` */
|
|
7
8
|
export interface IChangedTiddlersMeta {
|
|
8
|
-
|
|
9
|
+
deleted?: boolean;
|
|
10
|
+
modified?: boolean;
|
|
9
11
|
}
|
|
10
12
|
|
|
11
13
|
export interface IWidgetEvent {
|