Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
thisoneisreal
· 4mo ago · 0 comments
Can you explain more about how the front end aspect works? I'm not clear how the front end code could by TypeScript without a build step, unless I'm misreading.
Comments
[–]
austin-cheney
4mo ago
Node strips types on all imported code regardless of where that code executes.
[–]
root_axis
4mo ago
Node doesn't run in the browser.
[–]
umvi
4mo ago
Presumably Node is the server (back end), and when the browser requests a TS file, Node is stripping the types before serving it to the browser.
[–]
root_axis
4mo ago
That presumption is wrong, and doesn't quite make sense if you think about it.
[–]
austin-cheney
4mo ago
I am aware and it’s not what I said.
[–]
root_axis
4mo ago
You literally said "this even includes front-end code for the browser".
So what exactly are you referring to here?