TencentCloud / TencentCloud/tencentcloud-sdk-nodejs
[REQUEST]希望可以去除无用的类型引用
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 600
- Forks
- 113
- Avg merge
- 6h 46m
- Merged PRs (30d)
- 1
Description
背景
- 例如 node_modules/tencentcloud-sdk-nodejs/src/services/tms/v20201229/tms_client.ts
import {
RiskDetails,
TextModerationRequest,
DetailResults,
User,
Device,
TextModerationResponse,
} from "./tms_models"
DetailResults,
User,
Device,
RiskDetails,
这几个没有用到
- 导致ts build失败
node_modules/.pnpm/tencentcloud-sdk-nodejs@4.0.245/node_modules/tencentcloud-sdk-nodejs/src/services/tms/v20201229/tms_client.ts:24:3 - error TS6133: 'User' is declared but its value is never read.
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 with node_modules/tencentcloud-sdk-nodejs/src/services/tms/v20201229/tms_client.ts and compare each imported type with its usages. Run the TypeScript build to reproduce the TS6133 errors for unused imports. Done means the unused references are removed and the build completes without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100