TencentCloud / TencentCloud/tencentcloud-sdk-nodejs

[REQUEST]希望可以去除无用的类型引用

Open
#101 4 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.