Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cxwithyxy opened this issue Jul 16, 2024 · 1 comment

Comments

@cxwithyxy
Copy link

[!] (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
Copy link

qinmaye commented Jul 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants