microsoft / microsoft/TypeScript

Migration suggestions after *introducing* a .ts file

Open
#24,714 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Awaiting More Feedback Needs Proposal Suggestion
Dominant language
Go
Stars
111k
Forks
14.3k
Avg merge
2d 4h
Merged PRs (30d)
132

Description

After I brought #24713 up with @chrisdias, he mentioned his thinking was more about the "I'm going to introduce a .ts file into a JS project" scenario. I think once you have some .ts files around a project, you're going to want to migrate the .js files eventually too, so both scenarios are valid.

But things we could do include

  • Generating a tsconfig.json
  • Installing @types dependencies for packages that need them.

@mjbvz @amcasey

Contributor guide

Open the contributing guide

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

No files, tests, or entry points are named. Start by reading #24713 and the discussion with @chrisdias to establish the intended migration scenarios, then scope whether generating tsconfig.json and installing @types dependencies are both required. Done means the chosen behavior is specified and covered for introducing .ts files and migrating existing .js files.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.