@gx-design-vue/pro-utils 0.2.0-beta.8 → 0.2.0-beta.81

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.
@@ -0,0 +1,26 @@
1
+ export declare const regexpTag = "[object RegExp]";
2
+ export declare const stringTag = "[object String]";
3
+ export declare const numberTag = "[object Number]";
4
+ export declare const booleanTag = "[object Boolean]";
5
+ export declare const argumentsTag = "[object Arguments]";
6
+ export declare const symbolTag = "[object Symbol]";
7
+ export declare const dateTag = "[object Date]";
8
+ export declare const mapTag = "[object Map]";
9
+ export declare const setTag = "[object Set]";
10
+ export declare const arrayTag = "[object Array]";
11
+ export declare const functionTag = "[object Function]";
12
+ export declare const arrayBufferTag = "[object ArrayBuffer]";
13
+ export declare const objectTag = "[object Object]";
14
+ export declare const errorTag = "[object Error]";
15
+ export declare const dataViewTag = "[object DataView]";
16
+ export declare const uint8ArrayTag = "[object Uint8Array]";
17
+ export declare const uint8ClampedArrayTag = "[object Uint8ClampedArray]";
18
+ export declare const uint16ArrayTag = "[object Uint16Array]";
19
+ export declare const uint32ArrayTag = "[object Uint32Array]";
20
+ export declare const bigUint64ArrayTag = "[object BigUint64Array]";
21
+ export declare const int8ArrayTag = "[object Int8Array]";
22
+ export declare const int16ArrayTag = "[object Int16Array]";
23
+ export declare const int32ArrayTag = "[object Int32Array]";
24
+ export declare const bigInt64ArrayTag = "[object BigInt64Array]";
25
+ export declare const float32ArrayTag = "[object Float32Array]";
26
+ export declare const float64ArrayTag = "[object Float64Array]";
@@ -1,13 +1,13 @@
1
1
  export declare function is(val: unknown, type: string): boolean;
2
2
  export declare function isBoolean(val: unknown): val is boolean;
3
- export declare function isNumber(val: unknown): boolean;
3
+ export declare function isNumber(val: unknown): val is number;
4
4
  /**
5
- * @author gx12358 2539306317@qq.com
5
+ * @author gx12358 gx12358@gmail.com
6
6
  * @description 判断是否是数组
7
- * @param arg
8
- * @returns {arg is any[]|boolean}
7
+ * @param val
8
+ * @returns {val is any[]|boolean}
9
9
  */
10
- export declare function isArray(arg: unknown): boolean;
10
+ export declare function isArray(val: any): val is Array<any>;
11
11
  /**
12
12
  * @Author gaoxiang
13
13
  * @DateTime 2019/11/29
@@ -16,10 +16,13 @@ export declare function isArray(arg: unknown): boolean;
16
16
  */
17
17
  export declare function isObject(val: any): val is Record<any, any>;
18
18
  /**
19
- * @author gx12358 2539306317@qq.com
19
+ * @author gx12358 gx12358@gmail.com
20
20
  * @description 判断是否是字符串
21
21
  * @param value
22
22
  * @returns {boolean}
23
23
  */
24
- export declare function isString(value: unknown): boolean;
25
- export declare function isFunction(func: any): boolean;
24
+ export declare function isString(value: unknown): value is string;
25
+ export declare function isFunction(func: unknown): func is (...args: any[]) => any;
26
+ export declare function isJSONStr(str: any): boolean;
27
+ export declare function isMobile(): boolean;
28
+ export declare function isTablet(): boolean;
package/package.json CHANGED
@@ -1,6 +1,25 @@
1
1
  {
2
2
  "name": "@gx-design-vue/pro-utils",
3
- "version": "0.2.0-beta.8",
3
+ "type": "module",
4
+ "version": "0.2.0-beta.81",
5
+ "description": "Gx Design Pro Utils",
6
+ "publishConfig": {
7
+ "access": "public",
8
+ "tag": "beta"
9
+ },
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/pro-utils.js",
14
+ "require": "./dist/pro-utils.umd.cjs"
15
+ }
16
+ },
17
+ "main": "./dist/pro-utils.umd.cjs",
18
+ "module": "./dist/pro-utils.js",
19
+ "types": "./dist",
20
+ "files": [
21
+ "dist"
22
+ ],
4
23
  "scripts": {
5
24
  "dev": "vite",
6
25
  "build": "vite build",
@@ -10,55 +29,13 @@
10
29
  "typecheck": "vue-tsc --noEmit && vue-tsc --noEmit -p tsconfig.vitest.json --composite false",
11
30
  "lint": "TIMING=1 eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
12
31
  },
13
- "files": [
14
- "dist"
15
- ],
16
- "types": "./dist",
17
- "main": "./dist/pro-utils.umd.js",
18
- "module": "./dist/pro-utils.mjs",
19
- "exports": {
20
- ".": {
21
- "import": "./dist/pro-utils.mjs",
22
- "require": "./dist/pro-utils.umd.js"
23
- }
24
- },
25
- "dependencies": {
26
- "lodash-es": "^4.17.21",
27
- "vue": "^3.2.45",
28
- "vue-types": "^4.1.1"
32
+ "peerDependencies": {
33
+ "vue": ">=3.0.0"
29
34
  },
30
35
  "devDependencies": {
31
- "@shared/vite-plugin-less-copy": "workspace:^0.0.0",
32
- "@rollup/plugin-typescript": "^8.3.0",
33
- "@rushstack/eslint-patch": "^1.1.0",
34
- "@types/lodash-es": "^4.17.6",
35
- "@types/jsdom": "^16.2.14",
36
- "@types/node": "^16.11.26",
37
- "@vitejs/plugin-vue": "^4.2.3",
38
- "@vitejs/plugin-vue-jsx": "^3.0.1",
39
- "@vue/eslint-config-prettier": "^7.0.0",
40
- "@vue/eslint-config-typescript": "^10.0.0",
41
- "@vue/tsconfig": "^0.1.3",
42
- "eslint": "^8.13.0",
43
- "eslint-plugin-prettier": "^4.0.0",
44
- "eslint-plugin-vue": "^8.6.0",
45
- "jsdom": "^19.0.0",
46
- "less": "^4.1.2",
47
- "postcss": "^8.4.12",
48
- "postcss-html": "^1.4.1",
49
- "postcss-less": "^6.0.0",
50
- "prettier": "^2.6.2",
51
- "rollup": "^2.70.2",
52
- "stylelint": "^14.7.1",
53
- "stylelint-config-prettier": "^9.0.3",
54
- "stylelint-config-recommended": "^7.0.0",
55
- "stylelint-config-recommended-vue": "^1.4.0",
56
- "stylelint-config-standard": "^25.0.0",
57
- "stylelint-order": "^5.0.0",
58
- "typescript": "^4.6.4",
59
- "vite": "^4.3.8",
60
- "vue-eslint-parser": "^9.0.3",
61
- "vue-tsc": "^1.0.24"
36
+ "typescript": "^5.3.3"
62
37
  },
63
- "description": "Gx Design"
38
+ "authors": [
39
+ "gx12358 <gx12358@gmail.com> (https://github.com/gx12358)"
40
+ ]
64
41
  }