easy-soft-utility 2.4.102 → 2.4.103

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.
@@ -111,13 +111,11 @@ export function isWeekend(date: Date): boolean;
111
111
  /**
112
112
  * check date in the year
113
113
  * @param {Date} date the datetime will check
114
- * @param {string|Number} year year
115
- * @returns
114
+ * @param {string|number} year year
116
115
  */
117
116
  export function inYear(date: Date, year: string | number): boolean;
118
117
  /**
119
118
  * Check target is async function
120
119
  * @param {*} f the function will check
121
- * @returns
122
120
  */
123
121
  export function isAsyncFunction(f: any): boolean;
@@ -1,9 +1,6 @@
1
1
  /**
2
2
  * Build random hex color through configuration such as seeds
3
- *
4
- * @export
5
3
  * @param {*} seed
6
- * @returns
7
4
  */
8
5
  export function buildRandomHexColor({ seed }: any): string;
9
6
  /**
@@ -16,7 +13,6 @@ export function buildRGBColorFromHexColor(color: any, symbol?: any, arrayMode?:
16
13
  /**
17
14
  * Build hex color like '#E564F2'
18
15
  * @param {*} param0
19
- * @returns
20
16
  */
21
17
  export function buildHexColor({ progress, startColor, endColor }: any): string;
22
18
  /**
@@ -16,16 +16,14 @@ export function sleep(n: any, callback: any): void;
16
16
  export function getPathValue(o: any, path: any, defaultValue?: null): any;
17
17
  /**
18
18
  * Remove end match string
19
- * @param {String} target the string to be retrieved
20
- * @param {String} match matching specification
21
- * @returns
19
+ * @param {string} target the string to be retrieved
20
+ * @param {string} match matching specification
22
21
  */
23
22
  export function removeEndMatch(target: string, match: string): string;
24
23
  /**
25
24
  * Remove last match string
26
- * @param {String} target the string to be retrieved
27
- * @param {String} match matching specification
28
- * @returns
25
+ * @param {string} target the string to be retrieved
26
+ * @param {string} match matching specification
29
27
  */
30
28
  export function removeLastMatch(target: string, match: string): string;
31
29
  /**
@@ -70,18 +68,16 @@ export function transformData({ data, convert, recursiveKey, }: {
70
68
  * check exist in array
71
69
  * @param {Array} array the array will be seek
72
70
  * @param {Function} predicateFunction predicate function
73
- * @param {Number} fromIndex from index position, default is 0
74
- * @returns
71
+ * @param {number} fromIndex from index position, default is 0
75
72
  */
76
73
  export function checkExist(array: any[], predicateFunction: Function, fromIndex?: number): boolean;
77
74
  /**
78
75
  * 处理已存储的远程接口列表数据中的指定键数据
79
76
  * @param {Object} options 配置参数
80
77
  * @param {Object} options.target 目标调用对象, 需要具备 state 以及 setState
81
- * @param {String} options.value 目标对比值
78
+ * @param {string} options.value 目标对比值
82
79
  * @param {Function} options.compareValueHandler 解析处列表项键值数据进行对比, 需返回待对比数据
83
80
  * @param {Function} options.handler 处理对比命中的项的函数, 处理结果将被替换进列表
84
- * @returns
85
81
  */
86
82
  export function handleItem({ target, value, compareValueHandler, handler }: {
87
83
  target: Object;
@@ -5,13 +5,13 @@
5
5
  export function mergeProperties(...items: any): any;
6
6
  /**
7
7
  * Build style data to string
8
- * @param {Object|String} style the style will be builded
8
+ * @param {Object|string} style the style will be builded
9
9
  */
10
10
  export function buildStringStyle(style: Object | string): string;
11
11
  /**
12
12
  * Merge style
13
- * @param {Object|String} target the target style will be merged
14
- * @param {Object|String} style the other style will be merged
13
+ * @param {Object|string} target the target style will be merged
14
+ * @param {Object|string} style the other style will be merged
15
15
  */
16
16
  export function mergeStyle(target: Object | string, style: Object | string): string | Object;
17
17
  export function attachPropertiesToComponent(component: any, properties: any): any;
@@ -15,44 +15,44 @@ export namespace accessWaySpecialCollection {
15
15
  export { _super as super };
16
16
  }
17
17
  export namespace environmentCollection {
18
- const WEAPP: string;
19
- const WEB: string;
18
+ const ALIPAY: string;
19
+ const JD: string;
20
+ const QQ: string;
20
21
  const RN: string;
21
22
  const SWAN: string;
22
- const ALIPAY: string;
23
23
  const TT: string;
24
- const QQ: string;
25
- const JD: string;
26
24
  const UNKNOWN: string;
25
+ const WEAPP: string;
26
+ const WEB: string;
27
27
  }
28
28
  export namespace alignHorizontal {
29
+ const center: string;
29
30
  const left: string;
30
31
  const right: string;
31
- const center: string;
32
32
  }
33
33
  export namespace alignVertical {
34
- const top: string;
35
- const middle: string;
36
34
  const bottom: string;
35
+ const middle: string;
36
+ const top: string;
37
37
  }
38
38
  export namespace underlyingState {
39
- const loadApiPath: string;
40
- const firstLoadSuccess: boolean;
41
- const loadSuccess: boolean;
42
- const registering: boolean;
43
39
  const dataLoading: boolean;
44
- const reloading: boolean;
45
- const searching: boolean;
46
- const refreshing: boolean;
47
- const paging: boolean;
48
- const processing: boolean;
49
40
  const dispatchComplete: boolean;
41
+ const externalData: null;
42
+ const firstLoadSuccess: boolean;
43
+ const loadApiPath: string;
44
+ const loadSuccess: boolean;
50
45
  const metaData: null;
51
46
  const metaExtra: null;
52
47
  const metaListData: never[];
53
48
  const metaOriginalData: null;
49
+ const paging: boolean;
50
+ const processing: boolean;
51
+ const refreshing: boolean;
52
+ const registering: boolean;
53
+ const reloading: boolean;
54
+ const searching: boolean;
54
55
  const urlParams: null;
55
- const externalData: null;
56
56
  }
57
57
  export namespace underlyingExtensionState {
58
58
  const dataLoading_1: boolean;
@@ -21,6 +21,7 @@ export function toMoney(target: any): number;
21
21
  export function toPercentage(value: any): string;
22
22
  /**
23
23
  * Convert to string
24
+ * @param {*} target
24
25
  */
25
26
  export function toString(target: any): string;
26
27
  /**
@@ -33,14 +34,20 @@ export function toBoolean(target: any): boolean;
33
34
  export function toUpper(target: any): string;
34
35
  export function toUpperFirst(source: any): string;
35
36
  /**
36
- * Convert to lower
37
+ * Convert to lower string
38
+ * @param {string|null} target
37
39
  */
38
- export function toLower(target: any): string;
39
- export function toLowerFirst(target: any): string;
40
+ export function toLower(target: string | null): string;
41
+ /**
42
+ * Convert to lower first string
43
+ * @param {string|null} target
44
+ */
45
+ export function toLowerFirst(target: string | null): string;
40
46
  /**
41
47
  * Convert to datetime
48
+ * @param {Date|string|number} target
42
49
  */
43
- export function toDatetime(target: any): any;
50
+ export function toDatetime(target: Date | string | number): Date;
44
51
  /**
45
52
  * Convert to Promise
46
53
  */
@@ -1,18 +1,54 @@
1
1
  /**
2
2
  * create dayjs datetime
3
- * @param {String} datetime a datetime string, eg "2020-01-02"
4
- * @param {String} format format string, eg "YYYY-MM-DD"
5
- * @returns
3
+ * @param {string} datetime a datetime string, eg "2020-01-02"
4
+ * @param {string} format format string, eg "YYYY-MM-DD"
6
5
  */
7
6
  export function createDayJsDatetime(datetime: string, format: string): dayjs.Dayjs;
8
- export function addHour(datetime: any, value: any): any;
9
- export function addMinute(datetime: any, value: any): any;
10
- export function addSecond(datetime: any, value: any): any;
7
+ /**
8
+ * Add hour to target time
9
+ * @param {Date|string} datetime target time
10
+ * @param {number} value
11
+ */
12
+ export function addHour(datetime: Date | string, value: number): Date;
13
+ /**
14
+ * Add minute to target time
15
+ * @param {Date|string} datetime target time
16
+ * @param {number} value
17
+ */
18
+ export function addMinute(datetime: Date | string, value: number): Date;
19
+ /**
20
+ * Add second to target time
21
+ * @param {Date|string} datetime target time
22
+ * @param {number} value
23
+ */
24
+ export function addSecond(datetime: Date | string, value: number): Date;
25
+ /**
26
+ * Get current time
27
+ */
11
28
  export function getNow(): Date;
29
+ /**
30
+ * Compare time less than target
31
+ * @param {Date|number|string} time the time will compare.
32
+ * @param {Date|number|string} compareTarget compare target.
33
+ */
34
+ export function compareTimeLessThan(time: Date | number | string, compareTarget: Date | number | string): boolean;
35
+ /**
36
+ * Compare time greater than target
37
+ * @param {Date|number|string} time the time will compare.
38
+ * @param {Date|number|string} compareTarget compare target.
39
+ */
40
+ export function compareTimeGreaterThan(time: Date | number | string, compareTarget: Date | number | string): boolean;
41
+ /**
42
+ * get time stamp
43
+ * @param {Date|string|number|null} time time, if time is null, will use now time.
44
+ */
45
+ export function getTimeStamp(time?: Date | string | number | null): number;
12
46
  /**
13
47
  * Calculate time interval
48
+ * @param {Date} startTime start time.
49
+ * @param {Date} endTime end time.
14
50
  */
15
- export function calculateTimeInterval(startTime: any, endTime: any): {
51
+ export function calculateTimeInterval(startTime: Date, endTime: Date): {
16
52
  day: number;
17
53
  hour: number;
18
54
  minute: number;
@@ -25,6 +61,6 @@ export function getDayOfWeek({ data: date }: {
25
61
  * Get today in week like '星期日' / '星期一' / '星期二' / '星期三' / '星期四' / '星期五' / '星期六'
26
62
  */
27
63
  export function getTodayOfWeek(transferChinese?: boolean): string | number;
28
- export function calculateDateInterval(date: any, nowDate: any, unit: any): number;
64
+ export function calculateDateInterval(date: Date | number | string, nowDate: Date | number | string | null, unit: string | null): number;
29
65
  export function calculateMonthInterval(startMonth: any, endMonth: any): number;
30
66
  import dayjs from "dayjs";
@@ -38,8 +38,7 @@ export function formatTarget({ target, format, option }: {
38
38
  export function formatDateInterval(startTime: any, endTime: any, options?: {}): any;
39
39
  /**
40
40
  * 格式化指定时间与当前时间的时间间隔
41
- * @param {time} start 时间
42
- * @param {Object} opts 配置参数
43
- * @return {String} 文本内容
41
+ * @param {Date} time 时间
42
+ * @param {Object} options 配置参数
44
43
  */
45
- export function formatDateIntervalWithNow(time: any, options?: {}): string;
44
+ export function formatDateIntervalWithNow(time: Date, options?: Object): any;
@@ -1,24 +1,13 @@
1
1
  /**
2
- * 获取元数据
3
- *
4
- * @export
5
- * @param {*} fn
6
- * @returns
2
+ * Get local meta data
7
3
  */
8
4
  export function getLocalMetaData(): any;
9
5
  /**
10
- * 设置元数据
11
- *
12
- * @export
13
- * @param {*} fn
14
- * @returns
6
+ * Set local meta data
7
+ * @param {Object} data the date will save to local storage.
15
8
  */
16
- export function setLocalMetaData(data: any): void;
9
+ export function setLocalMetaData(data: Object): void;
17
10
  /**
18
- * 移除元数据
19
- *
20
- * @export
21
- * @param {*} fn
22
- * @returns
11
+ * Remove local meta data
23
12
  */
24
13
  export function removeLocalMetaData(): void;
@@ -1,43 +1,52 @@
1
1
  /**
2
2
  * Set local storage getter
3
+ * @param {Function} handler the cache getter handler
3
4
  */
4
- export function setLocalStorageGetter(handler: any): void;
5
+ export function setLocalStorageGetter(handler: Function): void;
5
6
  /**
6
7
  * Set local storage setter
8
+ * @param {Function} handler the cache setter handler
7
9
  */
8
- export function setLocalStorageSetter(handler: any): void;
10
+ export function setLocalStorageSetter(handler: Function): void;
9
11
  /**
10
12
  * Set local storage remover
13
+ * @param {Function} handler the cache remover handler
11
14
  */
12
- export function setLocalStorageRemover(handler: any): void;
15
+ export function setLocalStorageRemover(handler: Function): void;
13
16
  /**
14
17
  * Set local storage remover
18
+ * @param {Function} handler the cache flusher handler
15
19
  */
16
- export function setLocalStorageFlusher(handler: any): void;
20
+ export function setLocalStorageFlusher(handler: Function): void;
17
21
  /**
18
22
  * Get text to local storage with key
23
+ * @param {string} key the cache key
19
24
  */
20
- export function getStringFromLocalStorage(key: any): void;
25
+ export function getStringFromLocalStorage(key: string): void;
21
26
  /**
22
27
  * Get json to local storage with key
28
+ * @param {string} key the cache key
23
29
  */
24
- export function getJsonFromLocalStorage(key: any): any;
30
+ export function getJsonFromLocalStorage(key: string): any;
25
31
  /**
26
32
  * Save text to local storage with key
33
+ * @param {string} key the cache key
34
+ * @param {string} text the data will cache
27
35
  */
28
- export function saveStringToLocalStorage(key: any, text: any): void;
36
+ export function saveStringToLocalStorage(key: string, text: string): void;
29
37
  /**
30
38
  * Save json to local storage with key
39
+ * @param {string} key the cache key
40
+ * @param {Object} json the data will cache
31
41
  */
32
- export function saveJsonToLocalStorage(key: any, json: any): void;
42
+ export function saveJsonToLocalStorage(key: string, json: Object): void;
33
43
  /**
34
44
  * Remove local storage by key
45
+ * @param {string} key the cache key
35
46
  */
36
- export function removeLocalStorage(key: any): void;
47
+ export function removeLocalStorage(key: string): void;
37
48
  /**
38
49
  * Flush local storage
39
- * @export
40
- * @param {*} key
41
50
  */
42
51
  export function flushLocalStorage(): void;
43
52
  export namespace localStorageAssist {
@@ -47,41 +47,41 @@ export function size(collection: any): number;
47
47
  export function difference(array: any, values: any): any[];
48
48
  /**
49
49
  * 筛选需要的集合
50
- * @param {collection} 可筛选的对象, 例如数组
51
- * @param {predicateFunction} 每次迭代调用的筛选函数
50
+ * @param {Array} collection 可筛选的对象, 例如数组
51
+ * @param {Function} predicateFunction 每次迭代调用的筛选函数
52
52
  */
53
- export function filter(collection: any, predicateFunction: any): string[];
53
+ export function filter(collection: any[], predicateFunction: Function): any[];
54
54
  /**
55
55
  * 创建一个元素数组. 以 iteratee 处理的结果升序排序. 这个方法执行稳定排序, 也就是说相同元素会保持原始排序. iteratees 调用1个参数: (value).
56
- * @param {collection} (Array|Object), 用来迭代的集合.
57
- * @param {predicateFunction} 这个函数决定排序
56
+ * @param {Array} collection 用来迭代的集合.
57
+ * @param {Function} predicateFunction 这个函数决定排序
58
58
  */
59
- export function sortBy(collection: any, predicateFunction: any): any[];
59
+ export function sortBy(collection: any[], predicateFunction: Function): any[];
60
60
  /**
61
61
  * 该方法返回第一个通过 predicateFunction 判断为真值的元素的索引值(index), 而不是元素本身.
62
- * @param {array} (Array): 要搜索的数组.
63
- * @param {predicateFunction} 这个函数会在每一次迭代调用
64
- * @param {fromIndex} (number): The index to search from.
62
+ * @param {Array} array 要搜索的数组.
63
+ * @param {Function} predicateFunction 这个函数会在每一次迭代调用
64
+ * @param {number} fromIndex the index to search from.
65
65
  */
66
- export function findIndex(array: any, predicateFunction: any, fromIndex?: number): number;
66
+ export function findIndex(array: any[], predicateFunction: Function, fromIndex?: number): number;
67
67
  /**
68
68
  * 该方法返回第一个通过 predicateFunction 判断为真值的元素的索引值(index), 而不是元素本身,返回匹配元素, 否则返回 undefined. .
69
- * @param {array} (Array): 要搜索的数组.
70
- * @param {predicateFunction} 这个函数会在每一次迭代调用
71
- * @param {fromIndex} (number): The index to search from.
69
+ * @param {Array} array 要搜索的数组.
70
+ * @param {Function} predicateFunction 这个函数会在每一次迭代调用
71
+ * @param {number} fromIndex the index to search from.
72
72
  */
73
- export function find(array: any, predicateFunction: any, fromIndex?: number): any;
73
+ export function find(array: any[], predicateFunction: Function, fromIndex?: number): any;
74
74
  /**
75
75
  * debounce a function
76
- * @param {Function} f
77
- * @param {Number} wait
76
+ * @param {Function} functionCall
77
+ * @param {number} wait
78
78
  * @param {Object} options
79
79
  */
80
- export function debounce(f: Function, wait?: number, options?: Object): void;
80
+ export function debounce(functionCall: Function, wait?: number, options?: Object): void;
81
81
  /**
82
82
  * throttle a function
83
- * @param {Function} f
84
- * @param {Number} wait
83
+ * @param {Function} functionCall
84
+ * @param {number} wait
85
85
  * @param {Object} options
86
86
  */
87
- export function throttle(f: Function, wait?: number, options?: Object): void;
87
+ export function throttle(functionCall: Function, wait?: number, options?: Object): void;
@@ -1,16 +1,16 @@
1
1
  /**
2
2
  * Merge text message
3
- * @param {String} text the string will be merged
4
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be merged
3
+ * @param {string} text the string will be merged
4
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be merged
5
5
  */
6
6
  export function mergeTextMessage(text: string, ancillaryInformation: string): string;
7
7
  /**
8
8
  * Display text message
9
9
  * @param {Object} option log option
10
- * @param {String} option.text the string will be display
11
- * @param {String} option.color use this color to display
12
- * @param {String} option.dataDescription log prefix, when it not empty, it will be display
13
- * @param {String} option.ancillaryInformation when ancillary Information not empty, it will be display
10
+ * @param {string} option.text the string will be display
11
+ * @param {string} option.color use this color to display
12
+ * @param {string} option.dataDescription log prefix, when it not empty, it will be display
13
+ * @param {string} option.ancillaryInformation when ancillary Information not empty, it will be display
14
14
  */
15
15
  export function displayTextMessage({ text, color, dataDescription, ancillaryInformation, }: {
16
16
  text: string;
@@ -21,10 +21,10 @@ export function displayTextMessage({ text, color, dataDescription, ancillaryInfo
21
21
  /**
22
22
  * Display object message
23
23
  * @param {Object} option log option
24
- * @param {String} option.data the string will be display
25
- * @param {String} option.color use this color to display
26
- * @param {String} option.dataDescription log prefix, when it not empty, it will be display
27
- * @param {String} option.ancillaryInformation when ancillary Information not empty, it will be display
24
+ * @param {string} option.data the string will be display
25
+ * @param {string} option.color use this color to display
26
+ * @param {string} option.dataDescription log prefix, when it not empty, it will be display
27
+ * @param {string} option.ancillaryInformation when ancillary Information not empty, it will be display
28
28
  */
29
29
  export function displayObjectMessage({ data, color, dataDescription, ancillaryInformation, }: {
30
30
  data: string;
@@ -34,84 +34,84 @@ export function displayObjectMessage({ data, color, dataDescription, ancillaryIn
34
34
  }): void;
35
35
  /**
36
36
  * Log data message, default displayMode is logDisplay.auto, default level is logLevel.debug, default ancillaryInformation is empty string
37
- * @param {String} data the data will be display
38
- * @param {String} displayMode display mode, use logDisplay enum
39
- * @param {String} level log level, use logLevel enum
40
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
37
+ * @param {string} data the data will be display
38
+ * @param {string} displayMode display mode, use logDisplay enum
39
+ * @param {string} level log level, use logLevel enum
40
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
41
41
  */
42
42
  export function logData(data: string, displayMode?: string, level?: string, ancillaryInformation?: string): void;
43
43
  /**
44
44
  * Log warn message, default ancillaryInformation is empty string
45
- * @param {String|Object} data the data will be display
46
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
45
+ * @param {string|Object} data the data will be display
46
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
47
47
  */
48
48
  export function logWarn(data: string | Object, ancillaryInformation?: string): void;
49
49
  /**
50
50
  * Log info message, default ancillaryInformation is empty string
51
- * @param {String|Object} data the data will be display
52
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
51
+ * @param {string|Object} data the data will be display
52
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
53
53
  */
54
54
  export function logInfo(data: string | Object, ancillaryInformation?: string): void;
55
55
  /**
56
56
  * Log config message, default ancillaryInformation is empty string
57
- * @param {String|Object} data the data will be display
58
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
57
+ * @param {string|Object} data the data will be display
58
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
59
59
  */
60
60
  export function logConfig(data: string | Object, ancillaryInformation?: string): void;
61
61
  /**
62
62
  * Log development environment message, default ancillaryInformation is empty string
63
- * @param {String|Object} data the data will be display
64
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
63
+ * @param {string|Object} data the data will be display
64
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
65
65
  */
66
66
  export function logDevelop(data: string | Object, ancillaryInformation?: string): void;
67
67
  /**
68
68
  * Log stack message, default ancillaryInformation is empty string
69
- * @param {String|Object} data the data will be display
70
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
69
+ * @param {string|Object} data the data will be display
70
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
71
71
  */
72
72
  export function logStack(data: string | Object, ancillaryInformation?: string): void;
73
73
  /**
74
74
  * Log trace message, default ancillaryInformation is empty string
75
- * @param {String|Object} data the data will be display
76
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
75
+ * @param {string|Object} data the data will be display
76
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
77
77
  */
78
78
  export function logTrace(data: string | Object, ancillaryInformation?: string): void;
79
79
  /**
80
80
  * Log debug message, default ancillaryInformation is empty string
81
- * @param {String|Object} data the data will be display
82
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
81
+ * @param {string|Object} data the data will be display
82
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
83
83
  */
84
84
  export function logDebug(data: string | Object, ancillaryInformation?: string): void;
85
85
  /**
86
86
  * Log execute message, default ancillaryInformation is empty string
87
- * @param {String|Object} data the data will be display
88
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
87
+ * @param {string|Object} data the data will be display
88
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
89
89
  */
90
90
  export function logExecute(data: string | Object, ancillaryInformation?: string): void;
91
91
  /**
92
92
  * Log error message, default ancillaryInformation is empty string
93
- * @param {String|Object} data the data will be display
94
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
93
+ * @param {string|Object} data the data will be display
94
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
95
95
  */
96
96
  export function logError(data: string | Object, ancillaryInformation?: string): void;
97
97
  /**
98
98
  * Log error message, default ancillaryInformation is empty string
99
- * @param {String|Object} data the data will be display
100
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
99
+ * @param {string|Object} data the data will be display
100
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
101
101
  */
102
102
  export function logException(data: string | Object, ancillaryInformation?: string): void;
103
103
  /**
104
104
  * Log text message, default level is logLevel.trace, default ancillaryInformation is empty string
105
- * @param {String} text the text will be display
106
- * @param {String} level log level, use logLevel enum
107
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
105
+ * @param {string} text the text will be display
106
+ * @param {string} level log level, use logLevel enum
107
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
108
108
  */
109
109
  export function logText(text: string, level?: string, ancillaryInformation?: string): void;
110
110
  /**
111
111
  * Log object message, default level is logLevel.trace, default ancillaryInformation is empty string
112
112
  * @param {Object} data the data will be display
113
- * @param {String} level log level, use logLevel enum
114
- * @param {String} ancillaryInformation when ancillary Information not empty, it will be display
113
+ * @param {string} level log level, use logLevel enum
114
+ * @param {string} ancillaryInformation when ancillary Information not empty, it will be display
115
115
  */
116
116
  export function logObject(data: Object, level?: string, ancillaryInformation?: string): void;
117
117
  /**
@@ -120,7 +120,7 @@ export function logObject(data: Object, level?: string, ancillaryInformation?: s
120
120
  export function getLoggerDisplaySwitch(): boolean;
121
121
  /**
122
122
  * Set logger display switch
123
- * @param {Boolean} value display switch
123
+ * @param {boolean} value display switch
124
124
  */
125
125
  export function setLoggerDisplaySwitch(value: boolean): void;
126
126
  export namespace loggerSwitch {