dothtml-interfaces 0.2.4 → 0.2.5
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 +7 -4
package/package.json
CHANGED
package/src/i-dot.d.ts
CHANGED
|
@@ -336,12 +336,15 @@ export interface IDotDocument {
|
|
|
336
336
|
|
|
337
337
|
type Styles = string | IDotcssProp;
|
|
338
338
|
interface IComponentFactory {
|
|
339
|
-
<
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
prop(target: any, propertyKey: string): void;
|
|
339
|
+
<TProps extends Array<string>, TEvents extends Array<string>, T extends IComponent<TProps, TEvents>>(
|
|
340
|
+
Base: new () => T, styles?: Styles | Styles[]
|
|
341
|
+
): new () => T;
|
|
343
342
|
}
|
|
344
343
|
|
|
344
|
+
// useStyles<T extends IComponent>(styles: Styles | Styles[]): (Base: new () => T) => new () => T;
|
|
345
|
+
// hasEvents<T extends IComponent>(styles: Styles | Styles[]): (Base: new () => T) => new () => T;
|
|
346
|
+
// prop(target: any, propertyKey: string): void;
|
|
347
|
+
|
|
345
348
|
|
|
346
349
|
/**
|
|
347
350
|
* Interface for the dot object.
|