Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
z3t4
7y ago
0 comments
Save
Share
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.
0 comments
1 comments · 1 top-level
top
newest
oldest
dsego
7y 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.
j
/
k
navigate · click thread line to collapse