@gx-design-vue/pro-utils 0.2.0-beta.32 → 0.2.0-beta.34
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.
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
type DeepValueOf<T, K> = K extends `${infer First}:${infer Rest}` ? First extends keyof T ? Rest extends '' ? T[First] : DeepValueOf<T[First], Rest> : undefined : K extends keyof T ? T[K] : undefined;
|
|
2
|
-
export declare function getValueFromObjectByKey<T extends object, K extends string | string[]>(object: T, key: K): DeepValueOf<T, K extends string ? K : string> | undefined;
|
|
2
|
+
export declare function getValueFromObjectByKey<T extends object, K extends string | string[] = string>(object: T, key: K): DeepValueOf<T, K extends string ? K : string> | undefined;
|
|
3
3
|
export {};
|
package/dist/slots/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare function slotRender(slot: any, ...arg: any): any;
|
|
|
12
12
|
* @lastTime 2024/2/2
|
|
13
13
|
* @description () => T
|
|
14
14
|
*/
|
|
15
|
-
export declare function getSlot<T, K extends Record<string, unknown>>(slots: Readonly<Record<string, any>>, props: K, keys?: string | string[]): T;
|
|
15
|
+
export declare function getSlot<T, K extends Record<string, unknown> = Record<string, unknown>>(slots: Readonly<Record<string, any>>, props: K, keys?: string | string[]): T;
|
|
16
16
|
/**
|
|
17
17
|
* @Author gx12358
|
|
18
18
|
* @DateTime 2024/2/2
|