xshell 1.2.62 → 1.2.63
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.common.d.ts +1 -1
package/package.json
CHANGED
package/utils.common.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ export declare function filter_keys<TObj>(obj: TObj, filter: (key: string) => an
|
|
|
46
46
|
- filter?: `not_empty` */
|
|
47
47
|
export declare function filter_values<TObj extends Record<string, any>>(obj: TObj, filter?: (value: TObj[string]) => any): TObj;
|
|
48
48
|
/** 简单选择对象中的部分 keys, 返回新对象 */
|
|
49
|
-
export declare function pick<TObject>(obj: TObject, keys:
|
|
49
|
+
export declare function pick<TObject = any>(obj: TObject, keys: (keyof TObject)[]): Partial<TObject>;
|
|
50
50
|
/** 忽略对象中的 keys, 返回新对象 */
|
|
51
51
|
export declare function omit<TObj>(obj: TObj, omit_keys: string[]): TObj;
|
|
52
52
|
/** 模糊过滤字符串列表或对象列表,常用于根据用户输入补全或搜索过滤
|