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.
- package/lib/index.d.ts +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]) : (
|
|
402
|
+
] : T[K]) : (T[K]);
|
|
403
403
|
};
|
|
404
404
|
export type EzHTMLElementTagNameMap = {
|
|
405
405
|
[K in keyof HTMLElementTagNameMap]: ReplaceHTMLElement<HTMLElementTagNameMap[K]> & PropsWithKey;
|