diff --git a/package.json b/package.json index 1803e78..de9e82d 100644 --- a/package.json +++ b/package.json @@ -99,6 +99,7 @@ "@types/request-promise-native": "^1.0.18", "@types/semver": "^7.5.0", "@types/tunnel": "^0.0.3", + "@types/upyun": "^3.4.0", "@types/uuid": "^9.0.2", "@types/write-file-atomic": "^4.0.0", "@typescript-eslint/eslint-plugin": "^6.4.1", diff --git a/src/main/manage/apis/upyun.ts b/src/main/manage/apis/upyun.ts index 1d1ee37..8763efc 100644 --- a/src/main/manage/apis/upyun.ts +++ b/src/main/manage/apis/upyun.ts @@ -1,5 +1,3 @@ -// 忽略 TypeScript 错误 -// @ts-ignore import Upyun from 'upyun' // 加密函数、获取文件 MIME 类型、新的下载器、got 上传函数、并发异步任务池、错误格式化函数 diff --git a/src/renderer/apis/upyun.ts b/src/renderer/apis/upyun.ts index 61144a0..0decb37 100644 --- a/src/renderer/apis/upyun.ts +++ b/src/renderer/apis/upyun.ts @@ -1,4 +1,3 @@ -// @ts-ignore import Upyun from 'upyun' export default class UpyunApi { diff --git a/yarn.lock b/yarn.lock index 9edef8a..9e6866e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3512,6 +3512,13 @@ dependencies: "@types/node" "*" +"@types/upyun@^3.4.0": + version "3.4.0" + resolved "https://registry.npmjs.org/@types/upyun/-/upyun-3.4.0.tgz#1f32321ad602ce8314d10f36373e3e43238c4fe1" + integrity sha512-rO0YXtVPL5r57qYClRFKjIEi84fyRzZQijGkemUbcS2FZ8eXspAxDarzgDJF++B+jKkF2Ojn2WIhFoRrWWK/dw== + dependencies: + "@types/node" "*" + "@types/uuid@^9.0.2": version "9.0.2" resolved "https://registry.npmjs.org/@types/uuid/-/uuid-9.0.2.tgz#ede1d1b1e451548d44919dc226253e32a6952c4b"