dothtml-interfaces 0.1.45 → 0.1.47
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 +3 -1
- package/src/i-dot.d.ts +1 -1
package/package.json
CHANGED
package/src/i-component.d.ts
CHANGED
|
@@ -31,12 +31,14 @@ export interface FrameworkItems {
|
|
|
31
31
|
// it might just be better to rethink how stuff gets passed into components.
|
|
32
32
|
export default interface IComponent {
|
|
33
33
|
|
|
34
|
+
readonly _?: FrameworkItems;
|
|
35
|
+
|
|
34
36
|
// Lifecycle hooks
|
|
35
37
|
|
|
36
38
|
/**
|
|
37
39
|
* A function returning DOThtml (required).
|
|
38
40
|
*/
|
|
39
|
-
build(
|
|
41
|
+
build(): IDotDocument;
|
|
40
42
|
|
|
41
43
|
/**
|
|
42
44
|
* An optional function that is called after builder that stylizes the component using a scoped style builder.
|
package/src/i-dot.d.ts
CHANGED
|
@@ -518,7 +518,7 @@ interface IDotGenericElement extends IDotAttrBuilder<IDotGenericElement>{}
|
|
|
518
518
|
|
|
519
519
|
// Interface for specific elements:
|
|
520
520
|
|
|
521
|
-
interface IMountedComponent<T extends IComponent>
|
|
521
|
+
interface IMountedComponent<T extends IComponent>{
|
|
522
522
|
on(event: string, callback: (...args: Array<any>)=>void): IMountedComponent<T>;
|
|
523
523
|
prop(name: string, value: any): IMountedComponent<T>;
|
|
524
524
|
}
|