TencentCloud / tencentcloud-sdk-nodejs

Tencent Cloud API 3.0 SDK for NodeJS
Apache License 2.0
365 stars 99 forks source link

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

Open zcharym opened 2 years ago

zcharym commented 2 years ago

执行过程:通过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"
  }
}