dothtml-interfaces 0.1.24 → 0.1.26
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-component.d.ts +2 -2
- package/src/i-dot.d.ts +3 -1
package/package.json
CHANGED
package/src/i-component.d.ts
CHANGED
|
@@ -4,9 +4,9 @@ import IDotCss from "./i-dot-css";
|
|
|
4
4
|
|
|
5
5
|
export interface FrameworkItems {
|
|
6
6
|
/**
|
|
7
|
-
* The root element of the component.
|
|
7
|
+
* The shadow root element of the component.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
root: ShadowRoot;
|
|
10
10
|
refs: { [key: string]: HTMLElement };
|
|
11
11
|
emit: (event: string, ...args: Array<any>)=>void;
|
|
12
12
|
restyle(): void;
|
package/src/i-dot.d.ts
CHANGED
|
@@ -241,7 +241,9 @@ export interface IDotCore extends IDotDocument
|
|
|
241
241
|
|
|
242
242
|
watch<Ti = IReactive|Array<any>|{[key: string|number]: any}|string|number|boolean, To = Ti>(props?: {value: Ti, key?: string, transformer?: (value: Ti)=>To}): IReactive<Ti, To>;
|
|
243
243
|
|
|
244
|
-
component<T extends IComponent>(ComponentClass: new(...args: any[])=>T): (new(...args:
|
|
244
|
+
// component<T extends IComponent>(ComponentClass: new(...args: any[])=>T): (new(...args: ConstructorParameters<T['build']>)=>(T&{readonly $:FrameworkItems}));
|
|
245
|
+
// component<T extends IComponent>(Base: new (...args: any[]) => T): new (...args: ConstructorParameters<T['build']>) => T
|
|
246
|
+
component<T extends IComponent>(Base: new (...args: Parameters<T['build']>) => T): new (...args: Parameters<T['build']>) => T;
|
|
245
247
|
}
|
|
246
248
|
|
|
247
249
|
export interface IDotWindowBuilder{
|