Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




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


Pretty sure this is here, my dude.

What are you referring to?

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.

It's been stuck at stage 1 since early 2022 unfortunately. https://github.com/tc39/proposal-type-annotations

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.

Ahhhh, that was it. Thank you



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: