jpf 5.0.31 → 5.0.32
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "tocca";
|
|
2
2
|
import { IDisposer, ISubscribable } from "./observableInterfaces";
|
|
3
|
-
import { Properties } from "./properties";
|
|
3
|
+
import { IProperties, Properties } from "./properties";
|
|
4
4
|
declare const htmlTags: {
|
|
5
5
|
a: boolean;
|
|
6
6
|
div: boolean;
|
|
@@ -36,7 +36,7 @@ export interface IElementOptions<TProperties> {
|
|
|
36
36
|
tagName: TagName;
|
|
37
37
|
properties?: TProperties;
|
|
38
38
|
}
|
|
39
|
-
export declare class Element<TProperties =
|
|
39
|
+
export declare class Element<TProperties = IProperties> implements IElement {
|
|
40
40
|
constructor(options: IElementOptions<TProperties>, children?: Array<IElement> | ISubscribable<Array<IElement>>);
|
|
41
41
|
private readonly tagName;
|
|
42
42
|
private readonly optionsChildren;
|
package/package.json
CHANGED
package/src/framework/element.ts
CHANGED
|
@@ -46,7 +46,7 @@ export interface IElementOptions<TProperties> {
|
|
|
46
46
|
properties?: TProperties;
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export class Element<TProperties =
|
|
49
|
+
export class Element<TProperties = IProperties> implements IElement {
|
|
50
50
|
constructor(options: IElementOptions<TProperties>, children?: Array<IElement> | ISubscribable<Array<IElement>>) {
|
|
51
51
|
this.tagName = options.tagName;
|
|
52
52
|
this.properties = options.properties;
|