nhanh-pure-function 4.6.0 → 4.6.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.
@@ -37,12 +37,3 @@ export type _Type_DeepPartial<T> = {
37
37
  export type _Type_Mutable<T> = {
38
38
  -readonly [P in keyof T]: T[P];
39
39
  };
40
- /**
41
- * 递归地将类型中的所有只读(readonly)属性转换为可写(writable)属性
42
- * @template T - 要处理的基础类型
43
- * @description 与TypeScript内置的Writable不同,DeepWritable会对嵌套对象进行递归处理,
44
- * 使所有层级的属性都变为可写。适用于需要修改对象属性的场景,但需要确保对象不会被其他地方引用。
45
- */
46
- export type _Type_DeepWritable<T> = {
47
- -readonly [P in keyof T]: _Type_DeepWritable<T[P]>;
48
- };
@@ -1,4 +1,3 @@
1
- import { _Type_DeepWritable } from '../Types';
2
1
  export * from './modules';
3
2
  /**
4
3
  * 寻找空闲时机执行传入方法
@@ -74,7 +73,7 @@ export declare function _Utility_RotateList<T>(list: T[]): T[][];
74
73
  * @param {any} val - 需要克隆的值
75
74
  * @returns {any} - 克隆后的值
76
75
  */
77
- export declare function _Utility_Clone<T>(val: T): _Type_DeepWritable<T>;
76
+ export declare function _Utility_Clone<T>(val: T): T;
78
77
  /**
79
78
  * 函数装饰器:精准测量并记录目标函数的执行耗时(单位:毫秒)
80
79
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nhanh-pure-function",
3
- "version": "4.6.0",
3
+ "version": "4.6.1",
4
4
  "description": "纯函数工具",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",