xshell 1.2.52 → 1.2.53
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 +1 -1
- package/utils.browser.d.ts +1 -1
- package/utils.d.ts +1 -1
package/package.json
CHANGED
package/utils.browser.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare function zip_object<TValue>(keys: (string | number)[], values: TV
|
|
|
19
19
|
/** 映射对象中的 keys, 返回新对象
|
|
20
20
|
- obj: 对象
|
|
21
21
|
- mapper?: `to_snake_case` (key: string) => string 或者 Record<string, string> */
|
|
22
|
-
export declare function map_keys<TReturn>(obj: any, mapper?: (key: string) => string | Record<string, string>): TReturn;
|
|
22
|
+
export declare function map_keys<TReturn>(obj: any, mapper?: ((key: string) => string) | Record<string, string>): TReturn;
|
|
23
23
|
/** 过滤对象中的 values, 返回新对象
|
|
24
24
|
- obj
|
|
25
25
|
- filter?: `not_empty` */
|
package/utils.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ export declare function zip_object<TValue>(keys: (string | number)[], values: TV
|
|
|
28
28
|
/** 映射对象中的 keys, 返回新对象
|
|
29
29
|
- obj: 对象
|
|
30
30
|
- mapper?: `to_snake_case` (key: string) => string 或者 Record<string, string> */
|
|
31
|
-
export declare function map_keys<TReturn>(obj: any, mapper?: (key: string) => string | Record<string, string>): TReturn;
|
|
31
|
+
export declare function map_keys<TReturn>(obj: any, mapper?: ((key: string) => string) | Record<string, string>): TReturn;
|
|
32
32
|
/** 映射对象中的 values, 返回新对象 */
|
|
33
33
|
export declare function map_values<TValue, TNewValue>(obj: {
|
|
34
34
|
[key: string]: TValue;
|