Type Checker
Experimental
tsrs is experimental. It aims for full TypeScript compatibility, but some differences remain. See the compatibility status for supported features and known gaps.
tsrs is a Rust port of the TypeScript compiler and language server, incubated as part of Oxc. Cloudflare, VoidZero, and Max Schwenk are developing it in collaboration with the TypeScript team.
The goal is faster type checking and lower memory use while preserving upstream TypeScript behavior. Rust also enables WebAssembly support for running the compiler in browsers and other environments.
Quickstart
Install tsrs as a development dependency:
sh
$ npm add -D tsrssh
$ pnpm add -D tsrssh
$ yarn add -D tsrssh
$ bun add -D tsrsRun it from your project directory to check types without emitting JavaScript:
sh
npx tsrs --noEmit