@ceale/util 1.18.1 → 1.19.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.
@@ -13,7 +13,7 @@ type Failure<E> = {
13
13
  data: null,
14
14
  error: E
15
15
  ];
16
- type Result<T, E = any> = Success<T> | Failure<E>;
16
+ type Result<T, E extends unknown = Error> = Success<T> | Failure<E>;
17
17
  interface tryCatch {
18
18
  /** 捕获所有 */
19
19
  <T>(func: (() => T)): Result<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ceale/util",
3
- "version": "1.18.1",
3
+ "version": "1.19.0",
4
4
  "author": "Ceale",
5
5
  "description": "小工具集",
6
6
  "repository": {