News for hackers. Stuff that matters.
Re:How the TypeScript Compiler Compiles by chrisandchris on Tuesday April 12, 2022 @02:05PM (#31006245)
Does Typescript even compile or is it transpile?
Re:How the TypeScript Compiler Compiles by WorldMaker on Tuesday April 12, 2022 @02:29PM (#31006555)
Both. Type erasure is a transpilation process. Generating .d.ts and other type metadata files is a compilation process. (With conditional types alone the type checker is compiling a fully Turing complete mini-language.)