Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

I really don't understand why typescript exists...


Without typescript, if you make a mistake in a type, it will throw an error at runtime when you try to use it. Then, you have to backtrack to find where it was created to find the bug.

With typescript, there's an error squiggle in your editor under the bug before you even run your app.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: