4 ms·
> Deno can run true TypeScript directly and not just strip types What exactly do you mean by that? Because no js engine carries the ts types into the runtime a
by jemmyw 4mo ago
> Deno can run true TypeScript directly and not just strip types
What exactly do you mean by that? Because no js engine carries the ts types into the runtime as far as I know. Deno and nodejs both use v8 as the runtime. v8's internal types are not connected at all to the ts types regardless of the wrapper. The only difference might be when/if static type checking is performed.
- steve_adams_86 4mo agoI think they mean deno handles transpiling for you so there’s no visible machinery for this aspect of the program. It’s just convenient.
- jemmyw 4mo agoI assumed they meant more than that because nodejs does the same since v22.18 and prior would do it with a flag. But they mentioned type stripping, which is really all transpiling of ts does for most code.