dothtml-interfaces 0.3.1 → 0.3.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/package.json
CHANGED
|
@@ -6,7 +6,7 @@ type LengthUnitSuffix = "" | "Cm" | "Ch" | "Em" | "Ex" | "In" | "Mm" | "P" | "Pc
|
|
|
6
6
|
|
|
7
7
|
type V<S> = IReactive<number|string> | number | S;
|
|
8
8
|
|
|
9
|
-
type LengthProp<Prefix extends string, Qty extends 1|2|3|4 = 1, S extends string|IReactive<string> = GKV> = {
|
|
9
|
+
type LengthProp<Prefix extends string, Qty extends 1|2|3|4 = 1, S extends string|IReactive<number|string> = GKV> = {
|
|
10
10
|
[Key in LengthUnitSuffix as `${Prefix}${Key}`]?: (
|
|
11
11
|
(Qty extends 1 ? V<S>|[V<S>] : void) |
|
|
12
12
|
(Qty extends 2 ? [V<S>, V<S>] : void) |
|