Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
icar
· 1y ago · 0 comments
I would bet on browsers being able to consume Typescript before WASM exposing any DOM API. That'd improve the Javascript situation a bit, at least.
Comments
[–]
notnullorvoid
1y ago
Not TS, but there are plans to allow something similar with special type annotation syntax. The runtimes still won't do anything with that extra info though, it'll get stripped just like comments.
https://github.com/tc39/proposal-type-annotations
[–]
jesse__
1y ago
Pretty sure this is here, my dude.
[–]
matt_kantor
1y ago
What are you referring to?
[–]
jesse__
1y ago
My bad, didn't fact check myself before I made an annoying quip. For some reason I thought browsers and started to roll out out native support for TS.
[–]
TheBicPen
1y ago
It's been stuck at stage 1 since early 2022 unfortunately.
https://github.com/tc39/proposal-type-annotations
[–]
norman784
1y ago
Maybe you got confused, because NodeJS is now able to strip annotations (it does not transform enums, etc) to let you run Typescript files directly.