@minto-ai/tools 1.0.66 → 1.0.661

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.
@@ -6,9 +6,10 @@ import { default as checkEmptyNotZero } from './check-empty-not-zero';
6
6
  import { default as checkObjectEmpty } from './check-object-empty';
7
7
  import { default as isArray } from './is-array';
8
8
  import { default as isBoolean } from './is-boolean';
9
+ import { default as isFunction } from './is-function';
9
10
  import { default as isNullOrUndefined } from './is-null-or-undefined';
10
11
  import { default as isNumber } from './is-number';
11
12
  import { default as isObject } from './is-object';
12
13
  import { default as isString } from './is-string';
13
14
  import { default as isUndefined } from './is-undefined';
14
- export { beParsedAsNumber, canBeParsedAsNumber, checkArrayEmpty, checkEmpty, checkEmptyNotZero, checkObjectEmpty, isArray, isBoolean, isNullOrUndefined, isNumber, isObject, isString, isUndefined, };
15
+ export { beParsedAsNumber, canBeParsedAsNumber, checkArrayEmpty, checkEmpty, checkEmptyNotZero, checkObjectEmpty, isArray, isBoolean, isFunction, isNullOrUndefined, isNumber, isObject, isString, isUndefined, };
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 判断输入值是否是一个函数。
3
+ *
4
+ * @param value 输入值。
5
+ * @returns 如果输入值是一个函数,则返回 true,否则返回 false。
6
+ */
7
+ declare function isFunction<T extends (...args: any[]) => any>(value: unknown): value is T;
8
+ export default isFunction;
package/dist/index.js CHANGED
@@ -13807,6 +13807,9 @@ function checkEmptyNotZero(value) {
13807
13807
  function isBoolean(value) {
13808
13808
  return typeof value === "boolean";
13809
13809
  }
13810
+ function isFunction$1(value) {
13811
+ return typeof value === "function";
13812
+ }
13810
13813
  function isNullOrUndefined2(value) {
13811
13814
  return value === null || value === void 0;
13812
13815
  }
@@ -16705,6 +16708,7 @@ export {
16705
16708
  isCompressFilePath,
16706
16709
  isDocumentFilePath,
16707
16710
  isFilePath,
16711
+ isFunction$1 as isFunction,
16708
16712
  isImageFilePath,
16709
16713
  isIos,
16710
16714
  isMobile,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@minto-ai/tools",
3
3
  "type": "module",
4
- "version": "1.0.66",
4
+ "version": "1.0.661",
5
5
  "description": "明途公共工具库",
6
6
  "author": "hcc",
7
7
  "license": "ISC",