fix: fix ts check

This commit is contained in:
allenve 2024-11-22 14:32:16 +08:00
parent 0ee2d6b966
commit 70286113cb
5 changed files with 3 additions and 7 deletions

View File

@ -58,7 +58,6 @@
"@swc/core": "^1.3.107", "@swc/core": "^1.3.107",
"@swc/helpers": "^0.5.3", "@swc/helpers": "^0.5.3",
"@swc/jest": "^0.2.34", "@swc/jest": "^0.2.34",
"@types/classnames": "^2.3.4",
"@types/express": "^4.17.14", "@types/express": "^4.17.14",
"@types/jest": "^28.1.0", "@types/jest": "^28.1.0",
"@types/js-yaml": "^4.0.5", "@types/js-yaml": "^4.0.5",

View File

@ -67,7 +67,6 @@
"@rollup/plugin-typescript": "^8.3.2", "@rollup/plugin-typescript": "^8.3.2",
"@svgr/rollup": "^6.2.1", "@svgr/rollup": "^6.2.1",
"@types/async": "^2.0.45", "@types/async": "^2.0.45",
"@types/classnames": "^2.2.3",
"@types/codemirror": "5.60.10", "@types/codemirror": "5.60.10",
"@types/deep-diff": "^1.0.0", "@types/deep-diff": "^1.0.0",
"@types/history": "^4.6.0", "@types/history": "^4.6.0",

View File

@ -56,7 +56,6 @@
"@rollup/plugin-typescript": "^8.3.2", "@rollup/plugin-typescript": "^8.3.2",
"@svgr/rollup": "^6.2.1", "@svgr/rollup": "^6.2.1",
"@types/async": "^2.0.45", "@types/async": "^2.0.45",
"@types/classnames": "^2.2.3",
"@types/codemirror": "5.60.10", "@types/codemirror": "5.60.10",
"@types/deep-diff": "^1.0.0", "@types/deep-diff": "^1.0.0",
"@types/history": "^4.6.0", "@types/history": "^4.6.0",

View File

@ -1745,7 +1745,7 @@ export class Evaluator {
* @param {date} date * @param {date} date
* @param {string} unit 'day''month''year' `week` * @param {string} unit 'day''month''year' `week`
* @param {string} format * @param {string} format
* @returns {date | string} , format * @returns {any} , format
*/ */
fnSTARTOF(date: Date, unit?: any, format?: string) { fnSTARTOF(date: Date, unit?: any, format?: string) {
const md = moment(this.normalizeDate(date)).startOf(unit || 'day'); const md = moment(this.normalizeDate(date)).startOf(unit || 'day');
@ -1760,7 +1760,7 @@ export class Evaluator {
* @param {date} date * @param {date} date
* @param {string} unit 'day''month''year' `week` * @param {string} unit 'day''month''year' `week`
* @param {string} format * @param {string} format
* @returns {date | string} , format * @returns {any} , format
*/ */
fnENDOF(date: Date, unit?: any, format?: string) { fnENDOF(date: Date, unit?: any, format?: string) {
const md = moment(this.normalizeDate(date)).endOf(unit || 'day'); const md = moment(this.normalizeDate(date)).endOf(unit || 'day');

View File

@ -37,7 +37,6 @@
"@rollup/plugin-url": "^7.0.0", "@rollup/plugin-url": "^7.0.0",
"@svgr/rollup": "^6.4.0", "@svgr/rollup": "^6.4.0",
"@types/async": "^2.0.45", "@types/async": "^2.0.45",
"@types/classnames": "^2.2.3",
"@types/codemirror": "^5.60.5", "@types/codemirror": "^5.60.5",
"@types/deep-diff": "^1.0.0", "@types/deep-diff": "^1.0.0",
"@types/history": "^4.6.0", "@types/history": "^4.6.0",