easy-soft-utility 2.7.19 → 2.7.21

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 (46) hide show
  1. package/es/index.d.ts +1 -1
  2. package/es/index.js +1 -1
  3. package/es/utils/accessWayAssist.d.ts +8 -8
  4. package/es/utils/applicationAssist.d.ts +26 -26
  5. package/es/utils/arrayAssist.d.ts +5 -5
  6. package/es/utils/authorityCacheAssist.d.ts +16 -16
  7. package/es/utils/authorityLocalAssist.d.ts +10 -10
  8. package/es/utils/base64.d.ts +11 -11
  9. package/es/utils/cacheAssist.d.ts +77 -77
  10. package/es/utils/calculate.d.ts +5 -5
  11. package/es/utils/checkAssist.d.ts +121 -121
  12. package/es/utils/colorAssist.d.ts +31 -31
  13. package/es/utils/common.d.ts +107 -107
  14. package/es/utils/componentAssist.d.ts +17 -17
  15. package/es/utils/constants.d.ts +192 -192
  16. package/es/utils/convertAssist.d.ts +58 -58
  17. package/es/utils/convertExtraAssist.d.ts +15 -15
  18. package/es/utils/currentOperatorAssist.d.ts +17 -17
  19. package/es/utils/datetime.d.ts +66 -66
  20. package/es/utils/definition.d.ts +4 -4
  21. package/es/utils/dvaAssist.d.ts +43 -43
  22. package/es/utils/formatAssist.d.ts +44 -44
  23. package/es/utils/htmlAssist.d.ts +4 -4
  24. package/es/utils/httpAssist.d.ts +1 -1
  25. package/es/utils/index.d.ts +40 -40
  26. package/es/utils/localMetaDataAssist.d.ts +17 -17
  27. package/es/utils/localStorageAssist.d.ts +57 -57
  28. package/es/utils/lodashTools.d.ts +87 -87
  29. package/es/utils/loggerAssist.d.ts +173 -173
  30. package/es/utils/messagePromptAssist.d.ts +212 -212
  31. package/es/utils/meta.d.ts +85 -85
  32. package/es/utils/modelAssist.d.ts +41 -41
  33. package/es/utils/navigationAssist.d.ts +14 -14
  34. package/es/utils/nearestLocalhostNotify.d.ts +9 -9
  35. package/es/utils/notificationPromptAssist.d.ts +177 -177
  36. package/es/utils/parametersDataAssist.d.ts +16 -16
  37. package/es/utils/progressAssist.d.ts +18 -18
  38. package/es/utils/promptAssist.d.ts +35 -35
  39. package/es/utils/queryString.d.ts +8 -8
  40. package/es/utils/requestAssist.d.ts +218 -218
  41. package/es/utils/runtimeAssist.d.ts +15 -15
  42. package/es/utils/sessionStorageAssist.d.ts +57 -57
  43. package/es/utils/tokenAssist.d.ts +21 -21
  44. package/es/utils/tools.d.ts +21 -21
  45. package/es/utils/userInterfaceGenerate.d.ts +17 -17
  46. package/package.json +32 -32
@@ -1,57 +1,57 @@
1
- /**
2
- * Set local storage getter
3
- * @param {Function} handler the cache getter handler
4
- */
5
- export function setLocalStorageGetter(handler: Function): void;
6
- /**
7
- * Set local storage setter
8
- * @param {Function} handler the cache setter handler
9
- */
10
- export function setLocalStorageSetter(handler: Function): void;
11
- /**
12
- * Set local storage remover
13
- * @param {Function} handler the cache remover handler
14
- */
15
- export function setLocalStorageRemover(handler: Function): void;
16
- /**
17
- * Set local storage remover
18
- * @param {Function} handler the cache flusher handler
19
- */
20
- export function setLocalStorageFlusher(handler: Function): void;
21
- /**
22
- * Get text to local storage with key
23
- * @param {string} key the cache key
24
- */
25
- export function getStringFromLocalStorage(key: string): void;
26
- /**
27
- * Get json to local storage with key
28
- * @param {string} key the cache key
29
- */
30
- export function getJsonFromLocalStorage(key: string): any;
31
- /**
32
- * Save text to local storage with key
33
- * @param {string} key the cache key
34
- * @param {string} text the data will cache
35
- */
36
- export function saveStringToLocalStorage(key: string, text: string): void;
37
- /**
38
- * Save json to local storage with key
39
- * @param {string} key the cache key
40
- * @param {Object} json the data will cache
41
- */
42
- export function saveJsonToLocalStorage(key: string, json: Object): void;
43
- /**
44
- * Remove local storage by key
45
- * @param {string} key the cache key
46
- */
47
- export function removeLocalStorage(key: string): void;
48
- /**
49
- * Flush local storage
50
- */
51
- export function flushLocalStorage(): void;
52
- export namespace localStorageAssist {
53
- function getStorage(key: any): void;
54
- function setStorage(key: any, value: any): void;
55
- function removeStorage(key: any): void;
56
- function flushStorage(): void;
57
- }
1
+ /**
2
+ * Set local storage getter
3
+ * @param {Function} handler the cache getter handler
4
+ */
5
+ export function setLocalStorageGetter(handler: Function): void;
6
+ /**
7
+ * Set local storage setter
8
+ * @param {Function} handler the cache setter handler
9
+ */
10
+ export function setLocalStorageSetter(handler: Function): void;
11
+ /**
12
+ * Set local storage remover
13
+ * @param {Function} handler the cache remover handler
14
+ */
15
+ export function setLocalStorageRemover(handler: Function): void;
16
+ /**
17
+ * Set local storage remover
18
+ * @param {Function} handler the cache flusher handler
19
+ */
20
+ export function setLocalStorageFlusher(handler: Function): void;
21
+ /**
22
+ * Get text to local storage with key
23
+ * @param {string} key the cache key
24
+ */
25
+ export function getStringFromLocalStorage(key: string): void;
26
+ /**
27
+ * Get json to local storage with key
28
+ * @param {string} key the cache key
29
+ */
30
+ export function getJsonFromLocalStorage(key: string): any;
31
+ /**
32
+ * Save text to local storage with key
33
+ * @param {string} key the cache key
34
+ * @param {string} text the data will cache
35
+ */
36
+ export function saveStringToLocalStorage(key: string, text: string): void;
37
+ /**
38
+ * Save json to local storage with key
39
+ * @param {string} key the cache key
40
+ * @param {Object} json the data will cache
41
+ */
42
+ export function saveJsonToLocalStorage(key: string, json: Object): void;
43
+ /**
44
+ * Remove local storage by key
45
+ * @param {string} key the cache key
46
+ */
47
+ export function removeLocalStorage(key: string): void;
48
+ /**
49
+ * Flush local storage
50
+ */
51
+ export function flushLocalStorage(): void;
52
+ export namespace localStorageAssist {
53
+ function getStorage(key: any): void;
54
+ function setStorage(key: any, value: any): void;
55
+ function removeStorage(key: any): void;
56
+ function flushStorage(): void;
57
+ }
@@ -1,87 +1,87 @@
1
- export function get(target: any, path: any, defaultValue?: null): any;
2
- export function groupBy(collection: any, iteratee?: null): import("lodash").Dictionary<any[]>;
3
- export function round(target: any, decimalPlace: any): number;
4
- /**
5
- * 检查字符串string是否以给定的target字符串结尾
6
- */
7
- export function endsWith(source: any, target: any, position: any): boolean;
8
- /**
9
- * Remove duplicate data and sort (ascending order).
10
- */
11
- export function sortedUnique(array: any): any[];
12
- export function split(source: any, separator: any, limit?: number): string[];
13
- export function assign(target: any, source: any): any;
14
- export function assignWith(target: any, sources: any, customizer: any): any;
15
- export function reverse(array: any): any;
16
- export function forEach(collection: any, iteratee: any): any[];
17
- export function gte(value: any, other: any): boolean;
18
- export function memoize(function_: any): any;
19
- export function floor(v: any, length_: any): number;
20
- export function first(array: any): any;
21
- export function startsWith(source: any, target: any): boolean;
22
- export function dropRight(array: any, n?: number): any[];
23
- export function uniqBy(array: any, iterate: any): any[];
24
- /**
25
- * Trim value.
26
- * @param {*} target the value will be trimmed
27
- * @returns result
28
- */
29
- export function trim(target: any): string;
30
- /**
31
- * Replace value.
32
- * @param {*} target the target value will be replaced
33
- * @param {*} pattern pattern mode
34
- * @param {*} value replace value
35
- * @returns result
36
- */
37
- export function replace(target: any, pattern: any, value: any): string;
38
- /**
39
- * 移除数组中predicate(断言)返回为真值的所有元素, 并返回移除元素组成的数组. predicate(断言) 会传入3个参数: (value, index, array).
40
- * @param {*} array
41
- * @param {*} predicate (Array|Function|Object|string): 每次迭代调用的函数
42
- */
43
- export function removeFromArray(array: any, predicate: any): any[];
44
- export function map(collection: any, iteratee: any): any[];
45
- export function set(object: any, path: any, value: any): any;
46
- export function size(collection: any): number;
47
- export function difference(array: any, values: any): any[];
48
- /**
49
- * 筛选需要的集合
50
- * @param {Array} collection 可筛选的对象, 例如数组
51
- * @param {Function} predicateFunction 每次迭代调用的筛选函数
52
- */
53
- export function filter(collection: any[], predicateFunction: Function): any[];
54
- /**
55
- * 创建一个元素数组. 以 iteratee 处理的结果升序排序. 这个方法执行稳定排序, 也就是说相同元素会保持原始排序. iteratees 调用1个参数: (value).
56
- * @param {Array} collection 用来迭代的集合.
57
- * @param {Function} predicateFunction 这个函数决定排序
58
- */
59
- export function sortBy(collection: any[], predicateFunction: Function): any[];
60
- /**
61
- * 该方法返回第一个通过 predicateFunction 判断为真值的元素的索引值(index), 而不是元素本身.
62
- * @param {Array} array 要搜索的数组.
63
- * @param {Function} predicateFunction 这个函数会在每一次迭代调用
64
- * @param {number} fromIndex the index to search from.
65
- */
66
- export function findIndex(array: any[], predicateFunction: Function, fromIndex?: number): number;
67
- /**
68
- * 该方法返回第一个通过 predicateFunction 判断为真值的元素的索引值(index), 而不是元素本身,返回匹配元素, 否则返回 undefined. .
69
- * @param {Array} array 要搜索的数组.
70
- * @param {Function} predicateFunction 这个函数会在每一次迭代调用
71
- * @param {number} fromIndex the index to search from.
72
- */
73
- export function find(array: any[], predicateFunction: Function, fromIndex?: number): any;
74
- /**
75
- * debounce a function
76
- * @param {Function} functionCall
77
- * @param {number} wait
78
- * @param {Object} options
79
- */
80
- export function debounce(functionCall: Function, wait?: number, options?: Object): void;
81
- /**
82
- * throttle a function
83
- * @param {Function} functionCall
84
- * @param {number} wait
85
- * @param {Object} options
86
- */
87
- export function throttle(functionCall: Function, wait?: number, options?: Object): void;
1
+ export function get(target: any, path: any, defaultValue?: null): any;
2
+ export function groupBy(collection: any, iteratee?: null): import("lodash").Dictionary<any[]>;
3
+ export function round(target: any, decimalPlace: any): number;
4
+ /**
5
+ * 检查字符串string是否以给定的target字符串结尾
6
+ */
7
+ export function endsWith(source: any, target: any, position: any): boolean;
8
+ /**
9
+ * Remove duplicate data and sort (ascending order).
10
+ */
11
+ export function sortedUnique(array: any): any[];
12
+ export function split(source: any, separator: any, limit?: number): string[];
13
+ export function assign(target: any, source: any): any;
14
+ export function assignWith(target: any, sources: any, customizer: any): any;
15
+ export function reverse(array: any): any;
16
+ export function forEach(collection: any, iteratee: any): any[];
17
+ export function gte(value: any, other: any): boolean;
18
+ export function memoize(function_: any): any;
19
+ export function floor(v: any, length_: any): number;
20
+ export function first(array: any): any;
21
+ export function startsWith(source: any, target: any): boolean;
22
+ export function dropRight(array: any, n?: number): any[];
23
+ export function uniqBy(array: any, iterate: any): any[];
24
+ /**
25
+ * Trim value.
26
+ * @param {*} target the value will be trimmed
27
+ * @returns result
28
+ */
29
+ export function trim(target: any): string;
30
+ /**
31
+ * Replace value.
32
+ * @param {*} target the target value will be replaced
33
+ * @param {*} pattern pattern mode
34
+ * @param {*} value replace value
35
+ * @returns result
36
+ */
37
+ export function replace(target: any, pattern: any, value: any): string;
38
+ /**
39
+ * 移除数组中predicate(断言)返回为真值的所有元素, 并返回移除元素组成的数组. predicate(断言) 会传入3个参数: (value, index, array).
40
+ * @param {*} array
41
+ * @param {*} predicate (Array|Function|Object|string): 每次迭代调用的函数
42
+ */
43
+ export function removeFromArray(array: any, predicate: any): any[];
44
+ export function map(collection: any, iteratee: any): any[];
45
+ export function set(object: any, path: any, value: any): any;
46
+ export function size(collection: any): number;
47
+ export function difference(array: any, values: any): any[];
48
+ /**
49
+ * 筛选需要的集合
50
+ * @param {Array} collection 可筛选的对象, 例如数组
51
+ * @param {Function} predicateFunction 每次迭代调用的筛选函数
52
+ */
53
+ export function filter(collection: any[], predicateFunction: Function): any[];
54
+ /**
55
+ * 创建一个元素数组. 以 iteratee 处理的结果升序排序. 这个方法执行稳定排序, 也就是说相同元素会保持原始排序. iteratees 调用1个参数: (value).
56
+ * @param {Array} collection 用来迭代的集合.
57
+ * @param {Function} predicateFunction 这个函数决定排序
58
+ */
59
+ export function sortBy(collection: any[], predicateFunction: Function): any[];
60
+ /**
61
+ * 该方法返回第一个通过 predicateFunction 判断为真值的元素的索引值(index), 而不是元素本身.
62
+ * @param {Array} array 要搜索的数组.
63
+ * @param {Function} predicateFunction 这个函数会在每一次迭代调用
64
+ * @param {number} fromIndex the index to search from.
65
+ */
66
+ export function findIndex(array: any[], predicateFunction: Function, fromIndex?: number): number;
67
+ /**
68
+ * 该方法返回第一个通过 predicateFunction 判断为真值的元素的索引值(index), 而不是元素本身,返回匹配元素, 否则返回 undefined. .
69
+ * @param {Array} array 要搜索的数组.
70
+ * @param {Function} predicateFunction 这个函数会在每一次迭代调用
71
+ * @param {number} fromIndex the index to search from.
72
+ */
73
+ export function find(array: any[], predicateFunction: Function, fromIndex?: number): any;
74
+ /**
75
+ * debounce a function
76
+ * @param {Function} functionCall
77
+ * @param {number} wait
78
+ * @param {Object} options
79
+ */
80
+ export function debounce(functionCall: Function, wait?: number, options?: Object): import("lodash").DebouncedFuncLeading<(...args: any) => any>;
81
+ /**
82
+ * throttle a function
83
+ * @param {Function} functionCall
84
+ * @param {number} wait
85
+ * @param {Object} options
86
+ */
87
+ export function throttle(functionCall: Function, wait?: number, options?: Object): import("lodash").DebouncedFunc<(...args: any) => any>;
@@ -1,173 +1,173 @@
1
- /**
2
- * Display text message
3
- * @param {Object} option log option
4
- * @param {string} option.text the string will be display
5
- * @param {string} option.color use this color to display
6
- * @param {string} option.dataDescription log prefix, when it not empty, it will be display
7
- * @param {string|Array} option.ancillaryInformation when ancillary Information not empty, it will be display
8
- */
9
- export function displayTextMessage({ text, color, dataDescription, ancillaryInformation, }: {
10
- text: string;
11
- color: string;
12
- dataDescription: string;
13
- ancillaryInformation: string | any[];
14
- }): void;
15
- /**
16
- * Display object message
17
- * @param {Object} option log option
18
- * @param {string} option.data the string will be display
19
- * @param {string} option.color use this color to display
20
- * @param {string} option.dataDescription log prefix, when it not empty, it will be display
21
- * @param {string|Array} option.ancillaryInformation when ancillary Information not empty, it will be display
22
- */
23
- export function displayObjectMessage({ data, color, dataDescription, ancillaryInformation, }: {
24
- data: string;
25
- color: string;
26
- dataDescription: string;
27
- ancillaryInformation: string | any[];
28
- }): void;
29
- /**
30
- * Log data message, default displayMode is logDisplay.auto, default level is logLevel.debug, default ancillaryInformation is empty string
31
- * @param {string} data the data will be display
32
- * @param {string} displayMode display mode, use logDisplay enum
33
- * @param {string} level log level, use logLevel enum
34
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
35
- * @param {Object} option cover config, eg { color: '#565242' }
36
- */
37
- export function logData(data: string, displayMode?: string, level?: string, ancillaryInformation?: string | any[], option?: Object): void;
38
- /**
39
- * Log warn message, default ancillaryInformation is empty string
40
- * @param {string|Object} data the data will be display
41
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
42
- * @param {Object} option cover config, eg { color: '#565242' }
43
- */
44
- export function logWarn(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
45
- /**
46
- * Log info message, default ancillaryInformation is empty string
47
- * @param {string|Object} data the data will be display
48
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
49
- * @param {Object} option cover config, eg { color: '#565242' }
50
- */
51
- export function logInfo(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
52
- /**
53
- * Log config message, default ancillaryInformation is empty string
54
- * @param {string|Object} data the data will be display
55
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
56
- * @param {Object} option cover config, eg { color: '#565242' }
57
- */
58
- export function logConfig(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
59
- /**
60
- * Log development environment message, default ancillaryInformation is empty string
61
- * @param {string|Object} data the data will be display
62
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
63
- * @param {Object} option cover config, eg { color: '#565242' }
64
- */
65
- export function logDevelop(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
66
- /**
67
- * Log stack message, default ancillaryInformation is empty string
68
- * @param {string|Object} data the data will be display
69
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
70
- * @param {Object} option cover config, eg { color: '#565242' }
71
- */
72
- export function logStack(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
73
- /**
74
- * Log trace message, default ancillaryInformation is empty string
75
- * @param {string|Object} data the data will be display
76
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
77
- * @param {Object} option cover config, eg { color: '#565242' }
78
- */
79
- export function logTrace(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
80
- /**
81
- * Log call track message, default ancillaryInformation is empty string
82
- * @param {string|Object} data the data will be display
83
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
84
- * @param {Object} option cover config, eg { color: '#565242' }
85
- */
86
- export function logCallTrack(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
87
- /**
88
- * Log call trace message, default ancillaryInformation is empty string
89
- * @param {string|Object} data the data will be display
90
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
91
- * @param {Object} option cover config, eg { color: '#565242' }
92
- */
93
- export function logCallTrace(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
94
- /**
95
- * Log render message, default ancillaryInformation is empty string
96
- * @param {string|Object} data the data will be display
97
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
98
- * @param {Object} option cover config, eg { color: '#565242' }
99
- */
100
- export function logRender(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
101
- /**
102
- * Log debug message, default ancillaryInformation is empty string
103
- * @param {string|Object} data the data will be display
104
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
105
- * @param {Object} option cover config, eg { color: '#565242' }
106
- */
107
- export function logDebug(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
108
- /**
109
- * Log execute message, default ancillaryInformation is empty string
110
- * @param {string|Object} data the data will be display
111
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
112
- * @param {Object} option cover config, eg { color: '#565242' }
113
- */
114
- export function logExecute(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
115
- /**
116
- * Log error message, default ancillaryInformation is empty string
117
- * @param {string|Object} data the data will be display
118
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
119
- * @param {Object} option cover config, eg { color: '#565242' }
120
- */
121
- export function logError(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
122
- /**
123
- * Log error message, default ancillaryInformation is empty string
124
- * @param {string|Object} data the data will be display
125
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
126
- * @param {Object} option cover config, eg { color: '#565242' }
127
- */
128
- export function logException(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
129
- /**
130
- * Log text message, default level is logLevel.trace, default ancillaryInformation is empty string
131
- * @param {string} text the text will be display
132
- * @param {string} level log level, use logLevel enum
133
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
134
- * @param {Object} option cover config, eg { color: '#565242' }
135
- */
136
- export function logText(text: string, level?: string, ancillaryInformation?: string | any[], option?: Object): void;
137
- /**
138
- * Log object message, default level is logLevel.trace, default ancillaryInformation is empty string
139
- * @param {Object} data the data will be display
140
- * @param {string} level log level, use logLevel enum
141
- * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
142
- * @param {Object} option cover config, eg { color: '#565242' }
143
- */
144
- export function logObject(data: Object, level?: string, ancillaryInformation?: string | any[], option?: Object): void;
145
- /**
146
- * Get logger display switch
147
- */
148
- export function getLoggerDisplaySwitch(): boolean;
149
- /**
150
- * Set logger display switch
151
- * @param {boolean} value display switch
152
- */
153
- export function setLoggerDisplaySwitch(value: boolean): void;
154
- export namespace loggerSwitch {
155
- const loggerDisplaySwitchPromptSetInformationComplete: boolean;
156
- const loggerDisplaySwitchSetComplete: boolean;
157
- const display: boolean;
158
- }
159
- export namespace logColorCollection {
160
- const config: string;
161
- const execute: string;
162
- const info: string;
163
- const warn: string;
164
- const debug: string;
165
- const trace: string;
166
- const error: string;
167
- const exception: string;
168
- const stack: string;
169
- const develop: string;
170
- const callTrack: string;
171
- const callTrace: string;
172
- const render: string;
173
- }
1
+ /**
2
+ * Display text message
3
+ * @param {Object} option log option
4
+ * @param {string} option.text the string will be display
5
+ * @param {string} option.color use this color to display
6
+ * @param {string} option.dataDescription log prefix, when it not empty, it will be display
7
+ * @param {string|Array} option.ancillaryInformation when ancillary Information not empty, it will be display
8
+ */
9
+ export function displayTextMessage({ text, color, dataDescription, ancillaryInformation, }: {
10
+ text: string;
11
+ color: string;
12
+ dataDescription: string;
13
+ ancillaryInformation: string | any[];
14
+ }): void;
15
+ /**
16
+ * Display object message
17
+ * @param {Object} option log option
18
+ * @param {string} option.data the string will be display
19
+ * @param {string} option.color use this color to display
20
+ * @param {string} option.dataDescription log prefix, when it not empty, it will be display
21
+ * @param {string|Array} option.ancillaryInformation when ancillary Information not empty, it will be display
22
+ */
23
+ export function displayObjectMessage({ data, color, dataDescription, ancillaryInformation, }: {
24
+ data: string;
25
+ color: string;
26
+ dataDescription: string;
27
+ ancillaryInformation: string | any[];
28
+ }): void;
29
+ /**
30
+ * Log data message, default displayMode is logDisplay.auto, default level is logLevel.debug, default ancillaryInformation is empty string
31
+ * @param {string} data the data will be display
32
+ * @param {string} displayMode display mode, use logDisplay enum
33
+ * @param {string} level log level, use logLevel enum
34
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
35
+ * @param {Object} option cover config, eg { color: '#565242' }
36
+ */
37
+ export function logData(data: string, displayMode?: string, level?: string, ancillaryInformation?: string | any[], option?: Object): void;
38
+ /**
39
+ * Log warn message, default ancillaryInformation is empty string
40
+ * @param {string|Object} data the data will be display
41
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
42
+ * @param {Object} option cover config, eg { color: '#565242' }
43
+ */
44
+ export function logWarn(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
45
+ /**
46
+ * Log info message, default ancillaryInformation is empty string
47
+ * @param {string|Object} data the data will be display
48
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
49
+ * @param {Object} option cover config, eg { color: '#565242' }
50
+ */
51
+ export function logInfo(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
52
+ /**
53
+ * Log config message, default ancillaryInformation is empty string
54
+ * @param {string|Object} data the data will be display
55
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
56
+ * @param {Object} option cover config, eg { color: '#565242' }
57
+ */
58
+ export function logConfig(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
59
+ /**
60
+ * Log development environment message, default ancillaryInformation is empty string
61
+ * @param {string|Object} data the data will be display
62
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
63
+ * @param {Object} option cover config, eg { color: '#565242' }
64
+ */
65
+ export function logDevelop(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
66
+ /**
67
+ * Log stack message, default ancillaryInformation is empty string
68
+ * @param {string|Object} data the data will be display
69
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
70
+ * @param {Object} option cover config, eg { color: '#565242' }
71
+ */
72
+ export function logStack(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
73
+ /**
74
+ * Log trace message, default ancillaryInformation is empty string
75
+ * @param {string|Object} data the data will be display
76
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
77
+ * @param {Object} option cover config, eg { color: '#565242' }
78
+ */
79
+ export function logTrace(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
80
+ /**
81
+ * Log call track message, default ancillaryInformation is empty string
82
+ * @param {string|Object} data the data will be display
83
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
84
+ * @param {Object} option cover config, eg { color: '#565242' }
85
+ */
86
+ export function logCallTrack(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
87
+ /**
88
+ * Log call trace message, default ancillaryInformation is empty string
89
+ * @param {string|Object} data the data will be display
90
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
91
+ * @param {Object} option cover config, eg { color: '#565242' }
92
+ */
93
+ export function logCallTrace(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
94
+ /**
95
+ * Log render message, default ancillaryInformation is empty string
96
+ * @param {string|Object} data the data will be display
97
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
98
+ * @param {Object} option cover config, eg { color: '#565242' }
99
+ */
100
+ export function logRender(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
101
+ /**
102
+ * Log debug message, default ancillaryInformation is empty string
103
+ * @param {string|Object} data the data will be display
104
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
105
+ * @param {Object} option cover config, eg { color: '#565242' }
106
+ */
107
+ export function logDebug(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
108
+ /**
109
+ * Log execute message, default ancillaryInformation is empty string
110
+ * @param {string|Object} data the data will be display
111
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
112
+ * @param {Object} option cover config, eg { color: '#565242' }
113
+ */
114
+ export function logExecute(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
115
+ /**
116
+ * Log error message, default ancillaryInformation is empty string
117
+ * @param {string|Object} data the data will be display
118
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
119
+ * @param {Object} option cover config, eg { color: '#565242' }
120
+ */
121
+ export function logError(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
122
+ /**
123
+ * Log error message, default ancillaryInformation is empty string
124
+ * @param {string|Object} data the data will be display
125
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
126
+ * @param {Object} option cover config, eg { color: '#565242' }
127
+ */
128
+ export function logException(data: string | Object, ancillaryInformation?: string | any[], option?: Object): void;
129
+ /**
130
+ * Log text message, default level is logLevel.trace, default ancillaryInformation is empty string
131
+ * @param {string} text the text will be display
132
+ * @param {string} level log level, use logLevel enum
133
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
134
+ * @param {Object} option cover config, eg { color: '#565242' }
135
+ */
136
+ export function logText(text: string, level?: string, ancillaryInformation?: string | any[], option?: Object): void;
137
+ /**
138
+ * Log object message, default level is logLevel.trace, default ancillaryInformation is empty string
139
+ * @param {Object} data the data will be display
140
+ * @param {string} level log level, use logLevel enum
141
+ * @param {string|Array} ancillaryInformation when ancillary Information not empty, it will be display
142
+ * @param {Object} option cover config, eg { color: '#565242' }
143
+ */
144
+ export function logObject(data: Object, level?: string, ancillaryInformation?: string | any[], option?: Object): void;
145
+ /**
146
+ * Get logger display switch
147
+ */
148
+ export function getLoggerDisplaySwitch(): boolean;
149
+ /**
150
+ * Set logger display switch
151
+ * @param {boolean} value display switch
152
+ */
153
+ export function setLoggerDisplaySwitch(value: boolean): void;
154
+ export namespace loggerSwitch {
155
+ let loggerDisplaySwitchPromptSetInformationComplete: boolean;
156
+ let loggerDisplaySwitchSetComplete: boolean;
157
+ let display: boolean;
158
+ }
159
+ export namespace logColorCollection {
160
+ let config: string;
161
+ let execute: string;
162
+ let info: string;
163
+ let warn: string;
164
+ let debug: string;
165
+ let trace: string;
166
+ let error: string;
167
+ let exception: string;
168
+ let stack: string;
169
+ let develop: string;
170
+ let callTrack: string;
171
+ let callTrace: string;
172
+ let render: string;
173
+ }