Y
Hacker News
new
|
ask
|
show
|
jobs
by
z3t4
2712 days ago
Having TypeScript support in the browser doesn't make sense as the idea behind TypeScript is to add a compilation step so that type errors can be caught at compilation time. eg. before the code runs.
1 comments
dsego
2712 days ago
The browser still has to parse the JS code before executing it. It will complain if you get the syntax wrong, type checking is the same thing.
link