@d4l/collect-lib 1.14.0 → 1.14.1
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/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -536,7 +536,7 @@ type RecursiveKeyOf<TObj extends object> = {
|
|
|
536
536
|
type RecursiveKeyOfInner<TObj extends object> = {
|
|
537
537
|
[TKey in keyof TObj & (string | number)]: RecursiveKeyOfHandleValue<TObj[TKey], `.${TKey}`>;
|
|
538
538
|
}[keyof TObj & (string | number)];
|
|
539
|
-
type RecursiveKeyOfHandleValue<TValue, Text extends string> = TValue extends Function ?
|
|
539
|
+
type RecursiveKeyOfHandleValue<TValue, Text extends string> = TValue extends Function ? never : TValue extends any[] ? Text | `${Text}.${number}` | `${Text}.${number}${RecursiveKeyOfInner<TValue[0]>}` : TValue extends object ? Text | `${Text}${RecursiveKeyOfInner<TValue>}` : Text;
|
|
540
540
|
|
|
541
541
|
declare function toDeviceConfig(devices: ProgramDevice[]): DeviceConfig[];
|
|
542
542
|
|
package/dist/index.d.ts
CHANGED
|
@@ -536,7 +536,7 @@ type RecursiveKeyOf<TObj extends object> = {
|
|
|
536
536
|
type RecursiveKeyOfInner<TObj extends object> = {
|
|
537
537
|
[TKey in keyof TObj & (string | number)]: RecursiveKeyOfHandleValue<TObj[TKey], `.${TKey}`>;
|
|
538
538
|
}[keyof TObj & (string | number)];
|
|
539
|
-
type RecursiveKeyOfHandleValue<TValue, Text extends string> = TValue extends Function ?
|
|
539
|
+
type RecursiveKeyOfHandleValue<TValue, Text extends string> = TValue extends Function ? never : TValue extends any[] ? Text | `${Text}.${number}` | `${Text}.${number}${RecursiveKeyOfInner<TValue[0]>}` : TValue extends object ? Text | `${Text}${RecursiveKeyOfInner<TValue>}` : Text;
|
|
540
540
|
|
|
541
541
|
declare function toDeviceConfig(devices: ProgramDevice[]): DeviceConfig[];
|
|
542
542
|
|