Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support inverse: jsdoc-to-ts #59

Open
turadg opened this issue Dec 22, 2024 · 1 comment
Open

support inverse: jsdoc-to-ts #59

turadg opened this issue Dec 22, 2024 · 1 comment

Comments

@turadg
Copy link

turadg commented Dec 22, 2024

Now that .ts syntax will run natively in Node, it can be a better fit for many projects.

One of my projects has hundreds of .js files with TypeScript annotations in JSdoc but I'd prefer to have .ts files for better IDE support and readability.

Given your expertise converting JSDoc to TS, would you be interested in making a package (or extending this one) to do the reverse?

@kungfooman
Copy link
Contributor

TS in Node is just another case of feature creep increasing conflict potential (like type annotations being parsed as < operators, so valid TS still parses as valid JavaScript, but executing wrongly... oof).

Personally I started to use this project to finally get rid of TS again, simplyfying build pipelines along the way (browsers support ESM). I just hope this never happens to keep things simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants