Feature: add ts support for upyun

This commit is contained in:
萌萌哒赫萝 2023-08-28 02:38:27 -07:00
parent 3085385e03
commit 95faa5b247
4 changed files with 8 additions and 3 deletions

View File

@ -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",

View File

@ -1,5 +1,3 @@
// 忽略 TypeScript 错误
// @ts-ignore
import Upyun from 'upyun'
// 加密函数、获取文件 MIME 类型、新的下载器、got 上传函数、并发异步任务池、错误格式化函数

View File

@ -1,4 +1,3 @@
// @ts-ignore
import Upyun from 'upyun'
export default class UpyunApi {

View File

@ -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"