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

Credentials并未导出,typescript下无法通过编译 #342

Open
xianjun-li opened this issue Sep 25, 2019 · 1 comment
Open

Credentials并未导出,typescript下无法通过编译 #342

xianjun-li opened this issue Sep 25, 2019 · 1 comment

Comments

@xianjun-li
Copy link

xianjun-li commented Sep 25, 2019

使用环境:
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")'

@xialeistudio
Copy link
Contributor

已提交PR[#352 ]

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