@ceale/util 1.13.1 → 1.14.0

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/README.md CHANGED
@@ -42,4 +42,5 @@
42
42
  - `error.ts`
43
43
  - tryCatch()
44
44
  - `type.ts`
45
- - assert()
45
+ - assert()
46
+ - defineEnum()
package/dist/cjs/index.js CHANGED
@@ -421,4 +421,4 @@ var tryCatch = (parameter) => {
421
421
  throw new TypeError("参数类型错误,应为 Promise 或函数");
422
422
  };
423
423
  // src/type.ts
424
- var assert = (target) => {};
424
+ var assert = (variable) => {};
package/dist/esm/index.js CHANGED
@@ -373,7 +373,7 @@ var tryCatch = (parameter) => {
373
373
  throw new TypeError("参数类型错误,应为 Promise 或函数");
374
374
  };
375
375
  // src/type.ts
376
- var assert = (target) => {};
376
+ var assert = (variable) => {};
377
377
  export {
378
378
  waitSync,
379
379
  wait,
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * 就地断言一个变量为指定类型
3
3
  * @template Type 断言的类型,默认为`any`
4
- * @param target 待断言的变量
4
+ * @param variable 待断言的变量
5
5
  */
6
- export declare const assert: <Type = any>(target: any) => asserts target is Type;
6
+ export declare const assert: <Type = any>(variable: any) => asserts variable is Type;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ceale/util",
3
3
  "author": "Ceale",
4
- "version": "1.13.1",
4
+ "version": "1.14.0",
5
5
  "module": "index.ts",
6
6
  "type": "module",
7
7
  "main": "dist/esm/index.js",