Hacker News new | ask | show | jobs
by epolanski 1425 days ago
It doesn't really work fine beyond a single file.

I tried the experiment of .js files driven by typescript in JSDocs for around 10k lines and there is a night and day difference in what you can express, how and reuse it at the type level.

1 comments

I'm experienced in doing this too.

Name one thing you can't do.

To clairfy, if I am sharing types between modules I tend to use .d.ts files. Still no transpiling needed.