Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
skybrian
· 3y ago · 0 comments
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.
Comments
[–]
Zacru
3y ago
https://github.com/angular/tsickle
kind of does that. Though it's kind of deprecated and more specifically aimed at the Closure Compiler.
[–]
c-hendricks
3y ago
Does the typescript language server even look at jsdoc comments in libraries?
[–]
rasso
3y ago
Yes it does
[–]
meiraleal
3y ago
GPT 4 is great at converting TypeScript to JSDoc
[–]
skybrian
OP
3y ago
As a one-time conversion, maybe, but it would be expensive and unreliable as part of a toolchain.