dothtml-interfaces 0.1.34 → 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-dot.d.ts +9 -2
package/package.json
CHANGED
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,8 +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
|
-
component
|
|
245
|
-
|
|
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);
|
|
246
253
|
}
|
|
247
254
|
|
|
248
255
|
export interface IDotWindowBuilder{
|