Credentials并未导出,typescript下无法通过编译
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- node.js, typescript
- Domain
- api, developer-experience
Research direction
Start from the qiniu package entry point used by the import * as qiniu from 'qiniu' example and inspect how its TypeScript declarations expose Credentials. Reproduce the compiler error with the provided snippet; done means new qiniu.Credentials(qiniu_ak, qiniu_sk) compiles successfully for SDK version 7.2.2.
Written by the indexing model from the issue text.
Description
使用环境:
node.js, 使用了NODE.JS SDK,版本 7.2.2
sdk 安装方式:
yarn add qiniu
以下代码是typescript代码
import * as qiniu from 'qiniu'
const qiniu_credentials = new qiniu.Credentials(qiniu_ak, qiniu_sk)
提示:
Property 'Credentials' does not exist on type 'typeof import("/xxxx/node_modules/qiniu/index")'
- Dominant language
- JavaScript
- Stars
- 590
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from qiniu/nodejs-sdk
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
qiniu/nodejs-sdk#444 · 1 comment · 2 reactions ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
qiniu/nodejs-sdk#441 ·
-
需要完善内容审核相关API Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
qiniu/nodejs-sdk#426 ·
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 35/100
qiniu/nodejs-sdk#407 · 2 comments ·
-
批量删除无法指定区域 Open
Difficulty 3/5 1-2 days Newbie friendliness 35/100
qiniu/nodejs-sdk#403 · 3 comments ·
All issues in qiniu/nodejs-sdk
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·