Skip to content

Feature: migration tool to convert a full project from JSDoc to TypeScript strict #19285

Closed
@cyrilletuzi

Description

@cyrilletuzi

Currently, to stay aligned with native JavaScript, you can migrate a JavaScript project to TypeScript just by switching to .ts files and everything should be OK (except if there are real errors).

But you're not in strict mode, which is what you want if you come to TypeScript.

Now that JSDoc is understood by TypeScript, and following #18747, it would help TypeScript adoption a lot to have a tool to refactor a full JavaScript project, correctly commented with JSDoc, to TypeScript (applying #18747 quickfix everywhere).

It could even include the conversion from .js to .ts extension.

It would mean we can automatically migrate from a JS project to real TypeScript (aka strict mode).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Community ToolingThis might be better handled by tooling from the community instead of built into TypeScriptNeeds ProposalThis issue needs a plan that clarifies the finer details of how it could be implemented.SuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions