Re:Why if TYPE_CHECKING?
by kaoD on Wednesday December 20, 2023 @07:58AM
(#38708113)
TS is not interpreted. It compiles to JS, which is interpreted, but TS itself is not. There are no TS interpreters, they all compile to JS behind the scenes.
Or does Deno run TS natively? At a glance it looks like even its runtime is written in JS[0].
EDIT: looks like they have bindings for V8[1] so yeah, just a JS interpreter behind the scenes.
Or does Deno run TS natively? At a glance it looks like even its runtime is written in JS[0].
EDIT: looks like they have bindings for V8[1] so yeah, just a JS interpreter behind the scenes.
[0] https://github.com/denoland/deno/tree/main/runtime/js
[1] https://github.com/denoland/rusty_v8