baja-lite 1.3.25 → 1.3.27

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.
Files changed (74) hide show
  1. package/.eslintignore +7 -0
  2. package/.eslintrc.cjs +89 -0
  3. package/.prettierrc +4 -0
  4. package/.vscode/settings.json +8 -0
  5. package/ci.js +29 -0
  6. package/package-cjs.json +17 -0
  7. package/package.json +2 -2
  8. package/{boot-remote.js → src/boot-remote.ts} +7 -6
  9. package/{boot.js → src/boot.ts} +38 -31
  10. package/{code.js → src/code.ts} +66 -71
  11. package/{convert-xml.js → src/convert-xml.ts} +155 -105
  12. package/src/enum.ts +71 -0
  13. package/src/error.ts +11 -0
  14. package/src/fn.ts +295 -0
  15. package/{index.d.ts → src/index.ts} +12 -11
  16. package/{list.js → src/list.ts} +9 -8
  17. package/src/math.ts +405 -0
  18. package/src/object.ts +247 -0
  19. package/{snowflake.js → src/snowflake.ts} +52 -33
  20. package/src/sql.ts +5023 -0
  21. package/{sqlite.js → src/sqlite.ts} +52 -53
  22. package/src/string.ts +111 -0
  23. package/src/test-mysql.ts +144 -0
  24. package/{test-postgresql.js → src/test-postgresql.ts} +80 -91
  25. package/{test-sqlite.js → src/test-sqlite.ts} +80 -90
  26. package/{test-xml.js → src/test-xml.ts} +1 -1
  27. package/{test.js → src/test.ts} +3 -2
  28. package/src/wx/base.ts +76 -0
  29. package/src/wx/mini.ts +147 -0
  30. package/src/wx/organ.ts +290 -0
  31. package/{wx/types.d.ts → src/wx/types.ts} +10 -21
  32. package/tsconfig.cjs.json +42 -0
  33. package/tsconfig.json +44 -0
  34. package/tsconfig.tsbuildinfo +1 -0
  35. package/xml/event-report.xml +13 -0
  36. package/yarn.lock +1757 -0
  37. package/boot-remote.d.ts +0 -2
  38. package/boot.d.ts +0 -2
  39. package/code.d.ts +0 -2
  40. package/convert-xml.d.ts +0 -10
  41. package/enum.d.ts +0 -18
  42. package/enum.js +0 -59
  43. package/error.d.ts +0 -5
  44. package/error.js +0 -13
  45. package/fn.d.ts +0 -128
  46. package/fn.js +0 -172
  47. package/index.js +0 -11
  48. package/list.d.ts +0 -10
  49. package/math.d.ts +0 -83
  50. package/math.js +0 -451
  51. package/object.d.ts +0 -83
  52. package/object.js +0 -221
  53. package/snowflake.d.ts +0 -12
  54. package/sql.d.ts +0 -1788
  55. package/sql.js +0 -4765
  56. package/sqlite.d.ts +0 -32
  57. package/string.d.ts +0 -17
  58. package/string.js +0 -105
  59. package/test-mysql.d.ts +0 -2
  60. package/test-mysql.js +0 -109
  61. package/test-postgresql.d.ts +0 -2
  62. package/test-sqlite.d.ts +0 -1
  63. package/test-xml.d.ts +0 -1
  64. package/test.d.ts +0 -1
  65. package/wx/base.d.ts +0 -11
  66. package/wx/base.js +0 -78
  67. package/wx/mini.d.ts +0 -52
  68. package/wx/mini.js +0 -112
  69. package/wx/organ.d.ts +0 -65
  70. package/wx/organ.js +0 -171
  71. package/wx/types.js +0 -1
  72. package/wx.js +0 -3
  73. /package/{README.md → Readme.md} +0 -0
  74. /package/{wx.d.ts → src/wx.ts} +0 -0
package/boot-remote.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { GlobalSqlOptionForWeb } from './sql.js';
2
- export declare const BootRomote: (options: GlobalSqlOptionForWeb) => Promise<void>;
package/boot.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { GlobalSqlOption } from './sql.js';
2
- export declare const Boot: (options: GlobalSqlOption) => Promise<void>;
package/code.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
package/convert-xml.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export interface XML {
2
- type: 'tag' | 'text';
3
- name: string;
4
- id?: string;
5
- voidElement: boolean;
6
- attrs: Record<string, string>;
7
- children: XML[];
8
- content: string;
9
- }
10
- export declare const convert: (childrens: XML[], param: Record<string, any>, parentIds: string[], myBatisMapper: Record<string, XML[]>) => string;
package/enum.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export declare class Enum {
2
- private _value;
3
- private _desc;
4
- private _config;
5
- constructor(value: string, desc: string, ...config: string[]);
6
- eq(value: string | number | undefined | null): boolean;
7
- value(): string;
8
- desc(): string;
9
- config(): string[];
10
- }
11
- export type EnumMap = Record<string, Enum>;
12
- export type GlobalArray = Record<string, Array<[string, string]>>;
13
- export type GlobalMap = Record<string, Record<string, string>>;
14
- export interface EnmuJson {
15
- GlobalArray: GlobalArray;
16
- GlobalMap: GlobalMap;
17
- }
18
- export declare const getEnums: (GlobalValues?: EnumMap) => EnmuJson;
package/enum.js DELETED
@@ -1,59 +0,0 @@
1
- import { _enums } from "./sql.js";
2
- export class Enum {
3
- constructor(value, desc, ...config) {
4
- this._value = value;
5
- this._desc = desc;
6
- this._config = config;
7
- }
8
- eq(value) {
9
- if (value === undefined) {
10
- return false;
11
- }
12
- if (value === null) {
13
- return false;
14
- }
15
- if (typeof value === 'number') {
16
- return this._value === `${value}`;
17
- }
18
- return this._value === `${value}`;
19
- }
20
- value() {
21
- return this._value;
22
- }
23
- desc() {
24
- return this._desc;
25
- }
26
- config() {
27
- return this._config;
28
- }
29
- }
30
- let configData = null;
31
- export const getEnums = (GlobalValues) => {
32
- if (!GlobalValues) {
33
- return globalThis[_enums];
34
- }
35
- if (configData) {
36
- return configData;
37
- }
38
- const result = {
39
- GlobalArray: {},
40
- GlobalMap: {}
41
- };
42
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
43
- Object.keys(GlobalValues).forEach((item) => {
44
- // const guess = /([\w\W]+)_([^_]+)$/.exec(item);
45
- const guess = item.replace(new RegExp(`_${GlobalValues[item].value()}`, 'i'), '');
46
- if (guess) {
47
- if (!result.GlobalArray[guess]) {
48
- result.GlobalArray[guess] = [];
49
- }
50
- result.GlobalArray[guess].push([GlobalValues[item].value(), GlobalValues[item].desc()]);
51
- if (!result.GlobalMap[guess]) {
52
- result.GlobalMap[guess] = {};
53
- }
54
- result.GlobalMap[guess][GlobalValues[item].value()] = GlobalValues[item].desc();
55
- }
56
- });
57
- configData = result;
58
- return result;
59
- };
package/error.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export declare const Throw: {
2
- if(test: boolean, message: string | Error | any): void;
3
- ifNot(test: boolean, message: string | Error | any): void;
4
- now(message: string | Error | any): never;
5
- };
package/error.js DELETED
@@ -1,13 +0,0 @@
1
- export const Throw = {
2
- if(test, message) {
3
- if (test === true)
4
- this.now(message);
5
- },
6
- ifNot(test, message) {
7
- if (test !== true)
8
- this.now(message);
9
- },
10
- now(message) {
11
- throw typeof message === 'string' ? new Error(message) : message;
12
- }
13
- };
package/fn.d.ts DELETED
@@ -1,128 +0,0 @@
1
- /**
2
- * 回调函数promise化
3
- * 调用示例
4
- * soap.excute(arg1, arg2, function(error, data){});
5
- * 可使用为:
6
- * const soap_excute = promise({
7
- * fn: soap.excute,
8
- * target: soap
9
- * });
10
- * const data = await soap_excute(arg1, arg2);
11
- * @param this
12
- * @param param1
13
- */
14
- export declare const promise: <T>(this: any, { fn, target, last }: {
15
- fn: (...args: any[]) => any;
16
- target?: any;
17
- last?: boolean;
18
- }) => (...args: any[]) => Promise<T>;
19
- export declare const sleep: (time?: number) => Promise<unknown>;
20
- /**
21
- * 执行器
22
- * @param fn
23
- * @param {
24
- ifFinish?: (result?: T) => boolean; // 是否结束,默认是建议判断 !!result
25
- maxTryTimes?: number; //最多尝试几次,默认是20
26
- onFail?: () => Promise<boolean | undefined> | boolean | undefined; // 失败时的回调,返回false表示停止执行
27
- name?: string; // 执行器名称,用于打印日志
28
- exitIfFail?: boolean; // 失败时是否退出,默认是false. 这里设置true后,onFail返回true,也会停止执行
29
- defVal?: T; // 失败时的默认值
30
- sleepAppend?: number; // 等待延迟MS,默认是1000内随机+200
31
- * }
32
- * @returns
33
- */
34
- export declare function dieTrying<T = any>(fn: (...args: any[]) => Promise<T | undefined> | T | undefined, { ifFinish, maxTryTimes, onFail, name, exitIfFail, defVal, sleepAppend }?: {
35
- ifFinish?: (result?: T) => boolean;
36
- maxTryTimes?: number;
37
- onFail?: () => Promise<boolean | undefined> | boolean | undefined;
38
- name?: string;
39
- exitIfFail?: boolean;
40
- defVal?: T;
41
- sleepAppend?: number;
42
- }): Promise<T | undefined>;
43
- export declare enum ExcuteSplitMode {
44
- SyncTrust = 0,
45
- SyncNoTrust = 1,
46
- AsyncTrust = 2,
47
- AsyncNoTrust = 3
48
- }
49
- /**
50
- * 数组分割执行
51
- * @param datas 数组
52
- * @param fn 执行的函数, 参数1:分割数组;参数2:第几个分割数组;参数3:分割数组的数量;参数4:从第几个下标(相对于总数组)元素开始;参数5:到第几个下标(相对于总数组)元素结束
53
- * @param config 配置(三选一):everyLength=每组个数(最后一组可能不足次数), groupCount=拆分几组, extendParams=依附拆分数组;
54
- * @param 额外选项 settled=是否并行?
55
- * T: datas类型
56
- * E: extendParams类型
57
- * R: 返回值类型
58
- */
59
- /**
60
- * 数组分割执行
61
- *
62
- * # 参数说明
63
- * @param sync 同步异步开关
64
- * @param datas 数组
65
- * @param fn 执行的函数
66
- ```
67
- ** `args`: 分割后的小数组
68
- ** `index`: 第几个小数组
69
- ** `length`: 总共多少个小数组
70
- ** `extendParam`?: `参见下面Option中的extendParams`
71
- ** `startIndex`?: 本次小数组的第一个元素是从总数组的第几个元素
72
- ** `endIndex`?: 本次小数组的最后一个元素是从总数组的第几个元素
73
- fn: (args: T[], index: number, length: number, extendParam?: E, startIndex?: number, endIndex?: number):R => {
74
-
75
- }
76
- ```
77
- * @param option 选项
78
-
79
- ## 分割数组方式:2种,选择一种即可
80
- 1. everyLength=每组个数(最后一组可能不足次数)
81
- 2. groupCount=拆分几组
82
- ## settled 异步执行是否并行执行? 默认false
83
- ## `extendParams`:扩展参数
84
- ** 数组
85
- ** 结合分组方式:groupCount使用。例如:
86
- ```
87
- `groupCount`=5,那么可以传入5个`extendParams`,在执行分组时,会为每个数组传入对应下标的`extendParam`
88
- ```
89
- ## `trust` 是否信任方法体,默认false
90
- * true时,执行时捕获不异常, 返回值变为 R[]
91
- * false时,执行时捕获异常,并返回 { result: R[]; error: string[]; };
92
- # 泛型说明:全部可选
93
- 1. T = 数组类型
94
- 2. R = 返回结果类型
95
- 3. E = 扩展参数类型
96
-
97
- * @returns
98
- */
99
- export declare function excuteSplit<T = any, R = any, E = any>(sync: ExcuteSplitMode.SyncTrust, datas: T[], fn: (args: T[], index: number, length: number, extendParam?: E, startIndex?: number, endIndex?: number) => R, option: {
100
- everyLength?: number;
101
- groupCount?: number;
102
- settled?: boolean;
103
- extendParams?: E[];
104
- }): R[];
105
- export declare function excuteSplit<T = any, R = any, E = any>(sync: ExcuteSplitMode.SyncNoTrust, datas: T[], fn: (args: T[], index: number, length: number, extendParam?: E, startIndex?: number, endIndex?: number) => R, option: {
106
- everyLength?: number;
107
- groupCount?: number;
108
- settled?: boolean;
109
- extendParams?: E[];
110
- }): {
111
- result: R[];
112
- error: string[];
113
- };
114
- export declare function excuteSplit<T = any, R = any, E = any>(sync: ExcuteSplitMode.AsyncTrust, datas: T[], fn: (args: T[], index: number, length: number, extendParam?: E, startIndex?: number, endIndex?: number) => Promise<R>, option: {
115
- everyLength?: number;
116
- groupCount?: number;
117
- settled?: boolean;
118
- extendParams?: E[];
119
- }): Promise<R[]>;
120
- export declare function excuteSplit<T = any, R = any, E = any>(sync: ExcuteSplitMode.AsyncNoTrust, datas: T[], fn: (args: T[], index: number, length: number, extendParam?: E, startIndex?: number, endIndex?: number) => Promise<R>, option: {
121
- everyLength?: number;
122
- groupCount?: number;
123
- settled?: boolean;
124
- extendParams?: E[];
125
- }): Promise<{
126
- result: R[];
127
- error: string[];
128
- }>;
package/fn.js DELETED
@@ -1,172 +0,0 @@
1
- import { arraySplit } from './object.js';
2
- import { Throw } from './error.js';
3
- /**
4
- * 回调函数promise化
5
- * 调用示例
6
- * soap.excute(arg1, arg2, function(error, data){});
7
- * 可使用为:
8
- * const soap_excute = promise({
9
- * fn: soap.excute,
10
- * target: soap
11
- * });
12
- * const data = await soap_excute(arg1, arg2);
13
- * @param this
14
- * @param param1
15
- */
16
- export const promise = function ({ fn, target, last = true }) {
17
- return (...args) => {
18
- return new Promise((resolve, reject) => {
19
- args[last === true ? 'push' : 'unshift']((err, data) => {
20
- if (err === null || err === undefined) {
21
- return resolve.call(this, data);
22
- }
23
- return reject(err);
24
- });
25
- if (target) {
26
- fn.apply(target, args);
27
- }
28
- else {
29
- fn.apply({}, args);
30
- }
31
- });
32
- };
33
- };
34
- export const sleep = (time = parseInt(`${Math.random()}`) + 200) => new Promise((resolve) => setTimeout(resolve, time));
35
- /**
36
- * 执行器
37
- * @param fn
38
- * @param {
39
- ifFinish?: (result?: T) => boolean; // 是否结束,默认是建议判断 !!result
40
- maxTryTimes?: number; //最多尝试几次,默认是20
41
- onFail?: () => Promise<boolean | undefined> | boolean | undefined; // 失败时的回调,返回false表示停止执行
42
- name?: string; // 执行器名称,用于打印日志
43
- exitIfFail?: boolean; // 失败时是否退出,默认是false. 这里设置true后,onFail返回true,也会停止执行
44
- defVal?: T; // 失败时的默认值
45
- sleepAppend?: number; // 等待延迟MS,默认是1000内随机+200
46
- * }
47
- * @returns
48
- */
49
- export async function dieTrying(fn, { ifFinish = (result) => !!result, maxTryTimes = 20, onFail, name = 'dieTrying', exitIfFail = true, defVal, sleepAppend = 0 } = {}) {
50
- let count = 0;
51
- let result = defVal;
52
- while (result = await fn(), !ifFinish(result)) {
53
- await sleep(parseInt(`${Math.random() * 1000}`) + sleepAppend);
54
- count++;
55
- console.debug(`${name} try ${count} times`);
56
- if (count > maxTryTimes) {
57
- if (onFail) {
58
- const remuseExcute = await onFail();
59
- console.error(`${name} timeout`);
60
- count = 0;
61
- if (remuseExcute === false) {
62
- break;
63
- }
64
- }
65
- if (exitIfFail) {
66
- break;
67
- }
68
- }
69
- }
70
- return result;
71
- }
72
- export var ExcuteSplitMode;
73
- (function (ExcuteSplitMode) {
74
- ExcuteSplitMode[ExcuteSplitMode["SyncTrust"] = 0] = "SyncTrust";
75
- ExcuteSplitMode[ExcuteSplitMode["SyncNoTrust"] = 1] = "SyncNoTrust";
76
- ExcuteSplitMode[ExcuteSplitMode["AsyncTrust"] = 2] = "AsyncTrust";
77
- ExcuteSplitMode[ExcuteSplitMode["AsyncNoTrust"] = 3] = "AsyncNoTrust";
78
- })(ExcuteSplitMode || (ExcuteSplitMode = {}));
79
- export function excuteSplit(sync, datas, fn, { everyLength = 0, groupCount = 0, settled = false, extendParams = new Array() }) {
80
- if (extendParams.length > 0) {
81
- groupCount = extendParams.length;
82
- }
83
- Throw.if(everyLength === 0 && groupCount === 0, '参数错误!');
84
- const ps = { everyLength, groupCount };
85
- const list = arraySplit(datas, ps);
86
- if (sync === ExcuteSplitMode.AsyncTrust) {
87
- return new Promise(async (resolve, reject) => {
88
- try {
89
- const reasons = [];
90
- if (settled) {
91
- const result = await Promise.allSettled(list.map((list, i) => fn(list, i, list.length, extendParams[i])));
92
- for (const item of result) {
93
- if (item.status === 'rejected') {
94
- reject(item.reason);
95
- }
96
- else {
97
- reasons.push(item.value);
98
- }
99
- }
100
- }
101
- else {
102
- for (let i = 0; i < list.length; i++) {
103
- const startIndex = (i - 1) * ps.everyLength;
104
- const endIndex = startIndex + list[i].length - 1;
105
- reasons.push(await fn(list[i], i, list.length, extendParams[i], startIndex, endIndex));
106
- }
107
- }
108
- resolve(reasons);
109
- }
110
- catch (error) {
111
- reject(error);
112
- }
113
- });
114
- }
115
- else if (sync === ExcuteSplitMode.AsyncNoTrust) {
116
- return new Promise(async (resolve, reject) => {
117
- try {
118
- const reasons = { result: [], error: [] };
119
- if (settled) {
120
- const result = await Promise.allSettled(list.map((list, i) => fn(list, i, list.length, extendParams[i])));
121
- for (const item of result) {
122
- if (item.status === 'rejected') {
123
- reasons.error.push(item.reason);
124
- }
125
- else {
126
- reasons.result.push(item.value);
127
- }
128
- }
129
- }
130
- else {
131
- for (let i = 0; i < list.length; i++) {
132
- const startIndex = (i - 1) * ps.everyLength;
133
- const endIndex = startIndex + list[i].length - 1;
134
- try {
135
- reasons.result.push(await fn(list[i], i, list.length, extendParams[i], startIndex, endIndex));
136
- }
137
- catch (error) {
138
- reasons.error.push(error);
139
- }
140
- }
141
- }
142
- resolve(reasons);
143
- }
144
- catch (error) {
145
- reject(error);
146
- }
147
- });
148
- }
149
- else if (sync === ExcuteSplitMode.SyncTrust) {
150
- const reasons = [];
151
- for (let i = 0; i < list.length; i++) {
152
- const startIndex = (i - 1) * ps.everyLength;
153
- const endIndex = startIndex + list[i].length - 1;
154
- reasons.push(fn(list[i], i, list.length, extendParams[i], startIndex, endIndex));
155
- }
156
- return reasons;
157
- }
158
- else {
159
- const reasons = { result: [], error: [] };
160
- for (let i = 0; i < list.length; i++) {
161
- try {
162
- const startIndex = (i - 1) * ps.everyLength;
163
- const endIndex = startIndex + list[i].length - 1;
164
- reasons.result.push(fn(list[i], i, list.length, extendParams[i], startIndex, endIndex));
165
- }
166
- catch (error) {
167
- reasons.error.push(error);
168
- }
169
- }
170
- return reasons;
171
- }
172
- }
package/index.js DELETED
@@ -1,11 +0,0 @@
1
- import 'reflect-metadata';
2
- export * from './enum.js';
3
- export * from './error.js';
4
- export * from './fn.js';
5
- export * from './list.js';
6
- export * from './math.js';
7
- export * from './object.js';
8
- export * from './snowflake.js';
9
- export * from './sql.js';
10
- export * from './sqlite.js';
11
- export * from './string.js';
package/list.d.ts DELETED
@@ -1,10 +0,0 @@
1
- export declare class ArrayList<T> extends Array<T> {
2
- constructor(array?: Array<T> | T | undefined);
3
- add(...items: T[]): void;
4
- size(): number;
5
- isEmpty(): boolean;
6
- get(index: number): T | undefined;
7
- clear(): void;
8
- set(index: number, item: T): void;
9
- remove(index: number): void;
10
- }
package/math.d.ts DELETED
@@ -1,83 +0,0 @@
1
- /** 金钱格式化可用样式 */
2
- export declare class MoneyOption {
3
- style?: 'currency' | 'decimal' | 'percent';
4
- currency?: string;
5
- prefix?: number;
6
- def?: number;
7
- currencyDisplay?: 'symbol' | 'name' | 'code';
8
- useGrouping?: boolean;
9
- local?: string;
10
- }
11
- export interface Point {
12
- latitude: string;
13
- longitude: string;
14
- lat: number;
15
- long: number;
16
- }
17
- export declare const num: (val: any, def?: number) => number;
18
- export declare const max: (...args: any[]) => number;
19
- export declare const min: (...args: any[]) => number;
20
- export declare const div: (...args: any[]) => number;
21
- export declare const divDef: (def: any, ...args: any[]) => number;
22
- export declare const add: (...args: any[]) => number;
23
- export declare const mul: (...args: any[]) => number;
24
- export declare const sub: (...args: any[]) => number;
25
- export declare const round: (number: any, numDigits: number, upOrDown?: number) => number;
26
- /** =value.xx,其中xx=number,如number=99,表示修正数字为value.99 */
27
- export declare const merge: (value: any, number: any) => any;
28
- export declare const money: (value: any, option?: MoneyOption) => string;
29
- export declare class Bus {
30
- private result;
31
- private ifit;
32
- constructor(result: any);
33
- add(...args: any[]): this;
34
- sub(...args: any[]): this;
35
- div(...args: any[]): this;
36
- divDef(def: any, ...args: any[]): this;
37
- mul(...args: any[]): this;
38
- max(...args: any[]): this;
39
- min(...args: any[]): this;
40
- ac(): this;
41
- abs(): this;
42
- round(numDigits: number, upOrDown?: number): this;
43
- merge(number: any): this;
44
- if(condition: boolean): this;
45
- over(): number;
46
- money(option?: MoneyOption): string;
47
- lt(data: any): boolean;
48
- le(data: any): boolean;
49
- gt(data: any): boolean;
50
- ge(data: any): boolean;
51
- nlt(data: any): boolean;
52
- nle(data: any): boolean;
53
- ngt(data: any): boolean;
54
- nge(data: any): boolean;
55
- eq(data: any): boolean;
56
- ne(data: any): boolean;
57
- ifLt(data: any): this;
58
- ifLe(data: any): this;
59
- ifGt(data: any): this;
60
- ifGe(data: any): this;
61
- ifNlt(data: any): this;
62
- ifNle(data: any): this;
63
- ifNgt(data: any): this;
64
- ifNge(data: any): this;
65
- ifEq(data: any): this;
66
- ifNe(data: any): this;
67
- }
68
- export declare const calc: (result: any) => Bus;
69
- export declare const getGeo: (p1: Point, p2: Point) => number;
70
- /**
71
- * 十进制转换自定义进制
72
- * @param from 数字
73
- * @param to 自定义进制的字符
74
- * @returns
75
- */
76
- export declare function ten2Any(from: number, to?: string): string;
77
- /**
78
- * 自定义进制转换十进制
79
- * @param from
80
- * @param to
81
- * @returns
82
- */
83
- export declare function any2Ten(from: string, to?: string): number;