TencentCloud / TencentCloud/tencentcloud-sdk-nodejs
基于3.0版本创建d.ts文件报错
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 600
- Forks
- 113
- Avg merge
- 6h 46m
- Merged PRs (30d)
- 1
Description
执行过程:通过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"
}
}
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.
Research direction
Start by running tsc with the provided tsconfig.build.json and inspect the declaration emit around the referenced models module and DescribeDepartmentsRequest. Trace which JSDoc-generated types cause TS9006, then verify that declaration-only output completes without errors and produces the expected .d.ts files.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100