mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 10:38:16 +08:00
fix: fix ts check
This commit is contained in:
parent
0ee2d6b966
commit
70286113cb
@ -58,7 +58,6 @@
|
||||
"@swc/core": "^1.3.107",
|
||||
"@swc/helpers": "^0.5.3",
|
||||
"@swc/jest": "^0.2.34",
|
||||
"@types/classnames": "^2.3.4",
|
||||
"@types/express": "^4.17.14",
|
||||
"@types/jest": "^28.1.0",
|
||||
"@types/js-yaml": "^4.0.5",
|
||||
|
@ -67,7 +67,6 @@
|
||||
"@rollup/plugin-typescript": "^8.3.2",
|
||||
"@svgr/rollup": "^6.2.1",
|
||||
"@types/async": "^2.0.45",
|
||||
"@types/classnames": "^2.2.3",
|
||||
"@types/codemirror": "5.60.10",
|
||||
"@types/deep-diff": "^1.0.0",
|
||||
"@types/history": "^4.6.0",
|
||||
|
@ -56,7 +56,6 @@
|
||||
"@rollup/plugin-typescript": "^8.3.2",
|
||||
"@svgr/rollup": "^6.2.1",
|
||||
"@types/async": "^2.0.45",
|
||||
"@types/classnames": "^2.2.3",
|
||||
"@types/codemirror": "5.60.10",
|
||||
"@types/deep-diff": "^1.0.0",
|
||||
"@types/history": "^4.6.0",
|
||||
|
@ -1745,7 +1745,7 @@ export class Evaluator {
|
||||
* @param {date} date 日期对象
|
||||
* @param {string} unit 比如可以传入 'day'、'month'、'year' 或者 `week` 等等
|
||||
* @param {string} format 日期格式,可选
|
||||
* @returns {date | string} 新的日期对象, 如果传入 format 则返回格式化后的日期字符串
|
||||
* @returns {any} 新的日期对象, 如果传入 format 则返回格式化后的日期字符串
|
||||
*/
|
||||
fnSTARTOF(date: Date, unit?: any, format?: string) {
|
||||
const md = moment(this.normalizeDate(date)).startOf(unit || 'day');
|
||||
@ -1760,7 +1760,7 @@ export class Evaluator {
|
||||
* @param {date} date 日期对象
|
||||
* @param {string} unit 比如可以传入 'day'、'month'、'year' 或者 `week` 等等
|
||||
* @param {string} format 日期格式,可选
|
||||
* @returns {date | string} 新的日期对象, 如果传入 format 则返回格式化后的日期字符串
|
||||
* @returns {any} 新的日期对象, 如果传入 format 则返回格式化后的日期字符串
|
||||
*/
|
||||
fnENDOF(date: Date, unit?: any, format?: string) {
|
||||
const md = moment(this.normalizeDate(date)).endOf(unit || 'day');
|
||||
|
@ -37,7 +37,6 @@
|
||||
"@rollup/plugin-url": "^7.0.0",
|
||||
"@svgr/rollup": "^6.4.0",
|
||||
"@types/async": "^2.0.45",
|
||||
"@types/classnames": "^2.2.3",
|
||||
"@types/codemirror": "^5.60.5",
|
||||
"@types/deep-diff": "^1.0.0",
|
||||
"@types/history": "^4.6.0",
|
||||
|
Loading…
Reference in New Issue
Block a user