Hacker News new | ask | show | jobs
by bpiroman 410 days ago
I really don't understand why typescript exists...
1 comments

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.