Hacker News new | ask | show | jobs
by andrewingram 435 days ago
We use it heavily for backend code, and it is a bit of a hot path for our use cases. However the biggest issue is how big the types are by default. I had a 500 line schema file that compiled into a 800,000 line .d.ts file — occupying a huge proportion of our overall typechecking time.
1 comments

That sounds absolutely absurd.

Are you using a lot of deeply nested objects + unions/intersections?

A fair number of unions, yeah. Which also means some of the tricks for keeping the types small don’t work —- ie taking advantage of interface reuse.