dothtml-interfaces 0.1.15 → 0.1.17
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/i-dot.d.ts +4 -3
package/package.json
CHANGED
package/src/i-dot.d.ts
CHANGED
|
@@ -41,18 +41,19 @@ export interface IDotDocument
|
|
|
41
41
|
/**
|
|
42
42
|
* Creates a generic HTML node that can render a string, HTML nodes, or dotHTML content.
|
|
43
43
|
*/
|
|
44
|
-
html(content: string): IDotDocument;
|
|
44
|
+
html(content: string|number|boolean|IObservable): IDotDocument;
|
|
45
45
|
/**
|
|
46
46
|
* Creates a text node that will render as a string, rather than being parsed as markup.
|
|
47
47
|
*/
|
|
48
|
-
text(content: string): IDotDocument;
|
|
48
|
+
text(content: string|number|boolean|IObservable): IDotDocument;
|
|
49
49
|
/**
|
|
50
50
|
* Iterates n times, appending the result of each iteration to the VDBO.
|
|
51
51
|
* @param n The number of iterations.
|
|
52
52
|
* @param callback The markup-generating callback.
|
|
53
53
|
*/
|
|
54
54
|
iterate(n: number, callback: (i: number)=>DotContent): IDotDocument;
|
|
55
|
-
each<T>(a: Array<T>|{[key: string|number]: T}
|
|
55
|
+
each<T>(a: Array<T>|{[key: string|number]: T}, callback: (x: T, i: number, k: string|number)=>DotContent): IDotDocument;
|
|
56
|
+
each<T>(a: IObservable<any, Array<T>|{[key: string|number]: T}>, callback: (x: T, i: IObservable<number>, k: string|number)=>DotContent): IDotDocument;
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
59
|
* Removes the targeted document and everything in it.
|