Hacker News new | past | comments | ask | show | jobs | submit login

I'm wondering if there's a tool that converts TypeScript into JavaScript that has JsDoc type annotations and preserves API docs? Then you wouldn't need to include anything else. Let the application minify if they choose.



https://github.com/angular/tsickle kind of does that. Though it's kind of deprecated and more specifically aimed at the Closure Compiler.


Does the typescript language server even look at jsdoc comments in libraries?


Yes it does


GPT 4 is great at converting TypeScript to JSDoc


As a one-time conversion, maybe, but it would be expensive and unreliable as part of a toolchain.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: