dothtml 5.0.1 → 5.0.2

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/lib/i-dot.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import EventBus from "./event-bus";
2
2
  import type Component from "./component";
3
- import IDotCss from "./i-dotcss";
3
+ import IDotCss, { IDotcssProp } from "./i-dotcss";
4
4
  export declare type DotContentPrimitive = string | number | boolean;
5
5
  export declare type DotContentBasic = DotContentPrimitive | Node | Element | NodeList | Component | IDotDocument;
6
6
  export declare type DotContent = DotContentBasic | Array<DotContent> | (() => DotContent);
@@ -219,7 +219,7 @@ export interface IDotElementDocument<T extends IDotDocument> extends IDotDocumen
219
219
  itemProp(value: unknown): T;
220
220
  lang(value: unknown): T;
221
221
  spellCheck(value: unknown): T;
222
- style(value: string | ((css: IDotCss) => unknown)): T;
222
+ style(value: string | IDotcssProp): T;
223
223
  tabIndex(value: unknown): T;
224
224
  title(value: unknown): T;
225
225
  onContextMenu(callback: (e: Event) => void): T;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dothtml",
3
- "version": "5.0.1",
3
+ "version": "5.0.2",
4
4
  "description": "DOThtml is a client-side framework for building single-page applications.",
5
5
  "main": "lib/dothtml.js",
6
6
  "devDependencies": {
package/src/i-dot.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import EventBus from "./event-bus";
2
2
  import type Component from "./component";
3
- import IDotCss from "./i-dotcss";
3
+ import IDotCss, { IDotcssProp } from "./i-dotcss";
4
4
 
5
5
  export type DotContentPrimitive = string|number|boolean;
6
6
  export type DotContentBasic = DotContentPrimitive|Node|Element|NodeList|Component|IDotDocument//typeof DotDocument;
@@ -297,7 +297,7 @@ export interface IDotElementDocument<T extends IDotDocument> extends IDotDocumen
297
297
  itemProp(value: unknown): T;
298
298
  lang(value: unknown): T;
299
299
  spellCheck(value: unknown): T;
300
- style(value: string|((css: IDotCss)=>unknown)): T;
300
+ style(value: string|IDotcssProp): T;
301
301
  tabIndex(value: unknown): T;
302
302
  title(value: unknown): T;
303
303