dothtml-interfaces 0.1.33 → 0.1.34

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.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "Dependency injection interfaces for DOTHtml.",
5
5
  "main": "src/index.d.ts",
6
6
  "types": "src/index.d.ts",
@@ -15,7 +15,7 @@ export interface FrameworkItems {
15
15
  readonly tagName: string;
16
16
  readonly args: Array<any>;
17
17
  // readonly styleElement: HTMLStyleElement;
18
- readonly sharedStyles: CSSStyleSheet;
18
+ readonly sharedStyles: CSSStyleSheet[];
19
19
  }
20
20
  // css: IDotCss;
21
21
  // html: IDotGenericElement;
package/src/i-dot.d.ts CHANGED
@@ -241,11 +241,8 @@ export interface IDotCore extends IDotDocument
241
241
 
242
242
  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
243
 
244
- // component<T extends IComponent>(ComponentClass: new(...args: any[])=>T): (new(...args: ConstructorParameters<T['build']>)=>(T&{readonly $:FrameworkItems}));
245
- // component<T extends IComponent>(Base: new (...args: any[]) => T): new (...args: ConstructorParameters<T['build']>) => T
246
244
  component<T extends IComponent>(Base: new (...args: Parameters<T['build']>) => T): new (...args: Parameters<T['build']>) => T;
247
- useStyles<T extends IComponent>(styles: string|(()=>IDotCss|string)): ((Base: new (...args: Parameters<T['build']>) => T) => new (...args: Parameters<T['build']>) => T);
248
- // useStyles<T extends IComponent>(Base: new (...args: Parameters<T['build']>) => T): new (...args: Parameters<T['build']>) => T;
245
+ useStyles<T extends IComponent>(styles: string|((css: IDotCss)=>IDotcssProp|string)): ((Base: new (...args: Parameters<T['build']>) => T) => new (...args: Parameters<T['build']>) => T);
249
246
  }
250
247
 
251
248
  export interface IDotWindowBuilder{