ali-sdk / ali-oss

Aliyun OSS(Object Storage Service) JavaScript SDK for the Browser and Node.js
https://www.alibabacloud.com/help/doc-detail/52834.htm
MIT License
1.96k stars 576 forks source link

官方库还是 "typescript": "^3.9.5"的吗?有人能帮忙升级一下吗 #1319

Open cxwithyxy opened 4 months ago

cxwithyxy commented 4 months ago
[!] (plugin rpt2) RollupError: [plugin rpt2] node_modules/ali-oss/lib/common/utils/createRequest.ts:35:42 - error TS7006: Parameter 'params' implicitly has an 'any' type.

35 export function createRequest(this: any, params) {
                                            ~~~~~~
node_modules/ali-oss/lib/common/utils/createRequest.ts:106:5 - error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'.    

106     queries[params.subres] = null;
        ~~~~~~~~~~~~~~~~~~~~~~
node_modules/ali-oss/lib/common/utils/createRequest.ts:108:27 - error TS7006: Parameter 'v' implicitly has an 'any' type.

108     params.subres.forEach(v => {
                              ~
node_modules/ali-oss/lib/common/utils/createRequest.ts:109:7 - error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type '{}'.    

109       queries[v] = null;
          ~~~~~~~~~~
node_modules/ali-oss/lib/common/utils/createRequest.ts:113:7 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'. 
  No index signature with a parameter of type 'string' was found on type '{}'.

113       queries[v[0]] = v[1] === '' ? null : v[1];
          ~~~~~~~~~~~~~
node_modules/ali-oss/lib/common/utils/createRequest.ts:119:7 - error TS7053: Element implicitly has an 'any' type because expression of type 'string' can't be used to index type '{}'. 
  No index signature with a parameter of type 'string' was found on type '{}'.

119       queries[v[0]] = v[1];
          ~~~~~~~~~~~~~

node_modules/ali-oss/lib/client.js
qinmaye commented 4 months ago

感觉官方没人维护了。。。