Hacker News new | ask | show | jobs
by space_ghost 59 days ago
> instead of striping types

That's what Deno does too, tho. Typescript is designed to work that way.

2 comments

I meant that Deno supports the full language, including enums and JSX/TSX. Node doesn't, AFAIK.
Node’s type stripping only handles “erasable syntax”:

https://nodejs.org/learn/typescript/run-natively