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

基于3.0版本创建d.ts文件报错 #125

Open
zcharym opened this issue Aug 31, 2022 · 0 comments
Open

基于3.0版本创建d.ts文件报错 #125

zcharym opened this issue Aug 31, 2022 · 0 comments

Comments

@zcharym
Copy link

zcharym commented Aug 31, 2022

执行过程:通过tsc执行配置文件,读取jsdoc type注释生成d.ts文件

期望结果:d.ts生成文件无报错

实际结果:TS Error TS9006

TS9006: Declaration emit for this file requires using private name 'DescribeDepartmentsRequest' from module '"C:/**/cvm
/v**/models"'. An explicit type annotation may unblock declaration emit.

tsconfig.build.json 参考:

{
"compilerOptions": {
    "allowJs": true,
    "declaration": true,
    "declarationMap": true,
    "emitDeclarationOnly": true,
    "outDir": "node_modules/@types/tencentcloud-sdk-nodejs/tencentcloud"
  }
}
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

1 participant