> or is it also compiling down to JS and executing that?
This is the only way to execute TypeScript. That's how every tool that "executes" TypeScript works.
This is the only way to execute TypeScript. That's how every tool that "executes" TypeScript works.
There is a persistent fantastical hope that TS can somehow be a compiled language. It can't, not without breaking compatibility with JS. Until, of course, someone manages to compile JS - but at that point TS would be irrelevant.
I say this as someone who loves TS and wouldn't want to be without it: TS is a fancy linter. JS defines the execution semantics of the language.