dothtml-interfaces 0.2.4 → 0.2.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dothtml-interfaces",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "description": "Dependency injection interfaces for DOTHtml.",
5
5
  "main": "src/index.d.ts",
6
6
  "types": "src/index.d.ts",
@@ -40,7 +40,7 @@ export default interface IComponent<TProps extends Array<string> = [], TEvents e
40
40
 
41
41
  readonly _?: FrameworkItems;
42
42
 
43
- new (attrs: ComponentArgs<TProps, TEvents>): IComponent<TProps, TEvents>;
43
+ new (attrs?: ComponentArgs<TProps, TEvents>): IComponent<TProps, TEvents>;
44
44
  new (): IComponent<TProps, TEvents>;
45
45
 
46
46
  // Lifecycle hooks
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
- <T extends IComponent>(Base: new () => T, styles?: Styles | Styles[]): new () => T;
339
+ <TProps extends Array<string>, TEvents extends Array<string>, T extends IComponent<TProps, TEvents>>(
340
+ Base: new () => T, styles?: Styles | Styles[]
341
+ ): new () => T;
340
342
  useStyles<T extends IComponent>(styles: Styles | Styles[]): (Base: new () => T) => new () => T;
341
- hasEvents<T extends IComponent>(styles: Styles | Styles[]): (Base: new () => T) => new () => T;
342
- prop(target: any, propertyKey: string): void;
343
343
  }
344
344
 
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.