feat: 添加类型注释

This commit is contained in:
2025-01-20 16:05:50 +08:00
parent e5a4381b04
commit 60724a923e
27 changed files with 1364 additions and 249 deletions
+9 -2
View File
@@ -2,9 +2,10 @@
"name": "funjia-server",
"version": "1.0.0",
"description": "",
"main": "index.js",
"main": "lib/funjia-server.mjs",
"types": "lib/index.d.mts",
"scripts": {
"build":"vite build",
"build": "vite build",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
@@ -24,9 +25,15 @@
"multer": "^1.4.5-lts.1",
"node-cron": "^3.0.1",
"uuid": "^8.3.2",
"vite-plugin-dts": "^4.5.0",
"yaml": "^2.1.1"
},
"devDependencies": {
"@types/koa": "^2.15.0",
"@types/koa-mount": "^4.0.5",
"@types/koa-router": "^7.4.8",
"@types/koa-static": "^4.0.4",
"@types/lodash": "^4.17.14",
"vite": "^6.0.7"
}
}