logoalt Hacker News

creatonezlast Sunday at 10:05 PM1 replyview on HN

> there are plenty things you can't express in jsdoc but can in typescript

This isn't really true anymore, they have systematically added pretty much every type system feature to the JSDoc-like syntax.


Replies

g947olast Sunday at 11:16 PM

Having JSDoc-like syntax isn't the same as it being fully supported. If you have a large enough codebase, you'll likely find a few cases where things work in TypeScript but its equivalent somehow fails type check in JSDoc.

show 1 reply