ezh 0.1.5 → 0.1.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.
Files changed (2) hide show
  1. package/lib/index.d.ts +2 -2
  2. package/package.json +2 -2
package/lib/index.d.ts CHANGED
@@ -391,7 +391,7 @@ export type OmitNonStringFields<T> = Omit<T, {
391
391
  [K in keyof T]: T[K] extends string ? never : K;
392
392
  }[keyof T]>;
393
393
  export type ReplaceHTMLElement<T extends object> = {
394
- [K in keyof T]: K extends "children" ? (ChildElement[] | ChildElement) : (T extends HTMLInputElement ? (K extends InputControlProps ? T[K] | [
394
+ [K in keyof T]: K extends "children" ? (ChildElement[] | ChildElement) : K extends "style" ? (Partial<OmitNonStringFields<CSSStyleDeclaration>>) : T extends HTMLInputElement ? (K extends InputControlProps ? T[K] | [
395
395
  Obj,
396
396
  string,
397
397
  T[K]
@@ -399,7 +399,7 @@ export type ReplaceHTMLElement<T extends object> = {
399
399
  Obj,
400
400
  string,
401
401
  T[K]
402
- ] : T[K]) : (K extends "style" ? Partial<OmitNonStringFields<CSSStyleDeclaration>> : T[K]));
402
+ ] : T[K]) : (T[K]);
403
403
  };
404
404
  export type EzHTMLElementTagNameMap = {
405
405
  [K in keyof HTMLElementTagNameMap]: ReplaceHTMLElement<HTMLElementTagNameMap[K]> & PropsWithKey;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ezh",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "scripts": {
5
5
  "start": "webpack serve"
6
6
  },
@@ -50,4 +50,4 @@
50
50
  "dependencies": {
51
51
  "path-parser": "^6.1.0"
52
52
  }
53
- }
53
+ }