dothtml-interfaces 0.2.5 → 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.5",
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
@@ -339,9 +339,9 @@ interface IComponentFactory {
339
339
  <TProps extends Array<string>, TEvents extends Array<string>, T extends IComponent<TProps, TEvents>>(
340
340
  Base: new () => T, styles?: Styles | Styles[]
341
341
  ): new () => T;
342
+ useStyles<T extends IComponent>(styles: Styles | Styles[]): (Base: new () => T) => new () => T;
342
343
  }
343
344
 
344
- // useStyles<T extends IComponent>(styles: Styles | Styles[]): (Base: new () => T) => new () => T;
345
345
  // hasEvents<T extends IComponent>(styles: Styles | Styles[]): (Base: new () => T) => new () => T;
346
346
  // prop(target: any, propertyKey: string): void;
347
347