# TypeScript Native Compiler

A native ahead-of-time and JIT compiler for TypeScript built on LLVM and MLIR, compiling .ts files to native executables, WebAssembly, or running them directly through a built-in JIT without Node.js.

TypeScript Native Compiler is an ahead-of-time and just-in-time compiler for TypeScript, built on LLVM and MLIR. It compiles .ts files directly to native executables or WebAssembly, or runs them immediately through a built-in JIT, without needing Node.js or any JavaScript runtime.

It supports a substantial subset of TypeScript's type system, including strict null checks, template literal types, public, private, and protected class members, generating a class from a tuple, and compile-time type-narrowing conditionals. It can scaffold a new project for Visual Studio Code or as a CMake project with the compiler registered as a first-class CMake language, and it can generate debug information for use with GDB.

It is written in C++ and distributed under the MIT license.

Website: https://github.com/ASDAlexander77/TypeScriptCompiler
