util-helpers 5.7.3 → 5.7.4

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/esm/VERSION.js CHANGED
@@ -1,3 +1,3 @@
1
- var VERSION = "5.7.3";
1
+ var VERSION = "5.7.4";
2
2
 
3
3
  export { VERSION as default };
package/lib/VERSION.js CHANGED
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
2
 
3
- var VERSION = "5.7.3";
3
+ var VERSION = "5.7.4";
4
4
 
5
5
  module.exports = VERSION;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "util-helpers",
3
- "version": "5.7.3",
3
+ "version": "5.7.4",
4
4
  "description": "一个基于业务场景的工具方法库",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -1,7 +1,7 @@
1
1
  interface CheckResult {
2
2
  <P extends any[]>(fn: (...args: P) => Promise<any>, ...args: P): Promise<boolean>;
3
- <P extends any[]>(fn: (...args: P) => any, ...args: P): Promise<boolean>;
4
- (value: any): Promise<boolean>;
3
+ <P extends any[]>(fn: ((...args: P) => any) | undefined, ...args: P): Promise<boolean>;
4
+ (...args: any[]): Promise<boolean>;
5
5
  }
6
6
  /**
7
7
  * 检查函数执行/值的结果。