dothtml-interfaces 0.1.33 → 0.1.35
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 +1 -1
- package/src/i-dot.d.ts +9 -5
package/package.json
CHANGED
package/src/i-component.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export interface FrameworkItems {
|
|
|
15
15
|
readonly tagName: string;
|
|
16
16
|
readonly args: Array<any>;
|
|
17
17
|
// readonly styleElement: HTMLStyleElement;
|
|
18
|
-
readonly sharedStyles: CSSStyleSheet;
|
|
18
|
+
readonly sharedStyles: CSSStyleSheet[];
|
|
19
19
|
}
|
|
20
20
|
// css: IDotCss;
|
|
21
21
|
// html: IDotGenericElement;
|
package/src/i-dot.d.ts
CHANGED
|
@@ -225,6 +225,12 @@ export interface IDotDocument
|
|
|
225
225
|
wbr(content?: DotContent): IDotElementDocument<IDotGenericElement>;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
+
interface IComponentFactory {
|
|
229
|
+
<T extends IComponent>(Base: new (...args: Parameters<T['build']>) => T): new (...args: Parameters<T['build']>) => T;
|
|
230
|
+
useStyles<T extends IComponent>(styles: string|((css: IDotCss) => IDotcssProp|string)): (Base: new (...args: Parameters<T['build']>) => T) => new (...args: Parameters<T['build']>) => T;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
|
|
228
234
|
/**
|
|
229
235
|
* Interface for the dot object.
|
|
230
236
|
*/
|
|
@@ -241,11 +247,9 @@ export interface IDotCore extends IDotDocument
|
|
|
241
247
|
|
|
242
248
|
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
249
|
|
|
244
|
-
|
|
245
|
-
// component<T extends IComponent>(Base: new (...args:
|
|
246
|
-
|
|
247
|
-
useStyles<T extends IComponent>(styles: string|(()=>IDotCss|string)): ((Base: new (...args: Parameters<T['build']>) => T) => new (...args: Parameters<T['build']>) => T);
|
|
248
|
-
// useStyles<T extends IComponent>(Base: new (...args: Parameters<T['build']>) => T): new (...args: Parameters<T['build']>) => T;
|
|
250
|
+
component: IComponentFactory;
|
|
251
|
+
// component<T extends IComponent>(Base: new (...args: Parameters<T['build']>) => T): new (...args: Parameters<T['build']>) => T;
|
|
252
|
+
// useStyles<T extends IComponent>(styles: string|((css: IDotCss)=>IDotcssProp|string)): ((Base: new (...args: Parameters<T['build']>) => T) => new (...args: Parameters<T['build']>) => T);
|
|
249
253
|
}
|
|
250
254
|
|
|
251
255
|
export interface IDotWindowBuilder{
|