dothtml-interfaces 0.1.13 → 0.1.15
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 +3 -3
- package/src/i-observable.d.ts +2 -4
package/package.json
CHANGED
package/src/i-dot.d.ts
CHANGED
|
@@ -41,11 +41,11 @@ 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
|
-
|
|
44
|
+
html(content: string): IDotDocument;
|
|
45
45
|
/**
|
|
46
46
|
* Creates a text node that will render as a string, rather than being parsed as markup.
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
text(content: string): 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.
|
|
@@ -235,7 +235,7 @@ export interface IDotCore extends IDotDocument
|
|
|
235
235
|
bus: IEventBus;
|
|
236
236
|
window: IDotWindowBuilder;
|
|
237
237
|
|
|
238
|
-
observe<Ti
|
|
238
|
+
observe<Ti = IObservable|Array<any>|{[key: string|number]: any}|string|number|boolean, To = Ti>(props?: {value: Ti, key?: string, transformer?: (value: Ti)=>To}): IObservable<Ti, To>;
|
|
239
239
|
|
|
240
240
|
component<T extends {new(...args: any[]): (IComponent)}>(ComponentClass: T): T&{new(...args: any[]): ({$: FrameworkItems})};
|
|
241
241
|
}
|
package/src/i-observable.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { IDotDocument } from "./i-dot";
|
|
2
|
-
|
|
3
1
|
|
|
4
2
|
export default interface IObservable<Ti = any, To = Ti>{
|
|
5
3
|
// The untransformed value.
|
|
@@ -15,8 +13,8 @@ export default interface IObservable<Ti = any, To = Ti>{
|
|
|
15
13
|
key: string;
|
|
16
14
|
// Optional transformer that can transform the input.
|
|
17
15
|
transformer?: (input: Ti)=>To;
|
|
18
|
-
subscribeNode(node: Node): number;
|
|
19
|
-
subscribeAttr(node: HTMLElement, attributeName: string): number;
|
|
16
|
+
// subscribeNode(node: Node): number;
|
|
17
|
+
// subscribeAttr(node: HTMLElement, attributeName: string): number;
|
|
20
18
|
subscribeCallback(callback: (value: To)=>void): number;
|
|
21
19
|
detachBinding(id: number);
|
|
22
20
|
updateObservers(): void;
|