From 70286113cbb550d062299ac84a095553dfcf44af Mon Sep 17 00:00:00 2001 From: allenve Date: Fri, 22 Nov 2024 14:32:16 +0800 Subject: [PATCH] fix: fix ts check --- package.json | 1 - packages/amis-editor-core/package.json | 1 - packages/amis-editor/package.json | 1 - packages/amis-formula/src/evalutor.ts | 4 ++-- packages/amis-theme-editor-helper/package.json | 3 +-- 5 files changed, 3 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index f312ccf88..d93a0d91b 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/amis-editor-core/package.json b/packages/amis-editor-core/package.json index ba8a566ea..ffb4c87bd 100644 --- a/packages/amis-editor-core/package.json +++ b/packages/amis-editor-core/package.json @@ -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", diff --git a/packages/amis-editor/package.json b/packages/amis-editor/package.json index 851a8efd1..37658753b 100644 --- a/packages/amis-editor/package.json +++ b/packages/amis-editor/package.json @@ -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", diff --git a/packages/amis-formula/src/evalutor.ts b/packages/amis-formula/src/evalutor.ts index 29843968f..5998fdcd1 100644 --- a/packages/amis-formula/src/evalutor.ts +++ b/packages/amis-formula/src/evalutor.ts @@ -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'); diff --git a/packages/amis-theme-editor-helper/package.json b/packages/amis-theme-editor-helper/package.json index 22a957d41..2ea655b57 100644 --- a/packages/amis-theme-editor-helper/package.json +++ b/packages/amis-theme-editor-helper/package.json @@ -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", @@ -71,4 +70,4 @@ "react": ">=16.8.6", "react-dom": ">=16.8.6" } -} \ No newline at end of file +}