Skip to content
oxc-projectPublic

About

Rust port of the TypeScript 7 type checker

Resources

Code of conduct

Contributing

Security policy

Stars

2.1k stars

Watchers

3 watching

Forks

Latest commit

 

History

1,979 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

tsrs

npm license

tsrs is a drop-in replacement for the TypeScript 7 compiler and language server, written in Rust. Our goal is 100% conformance, with much lower memory use and faster type checking. Read the announcement.

Get started

pnpm add -D tsrs
pnpm exec tsrs --noEmit

You can try tsrs today and give us feedback on performance, memory usage, and conformance. Try checking and emitting code in the browser playground.

Conformance

We aim to release a stable version against TypeScript 7.1 with 100% conformance. See compatibility and evidence for supported features and known gaps.

Checker determinism

Deterministic checking means the same code and compiler options produce the same errors and exit status on every run, regardless of thread scheduling. Known checker-order issues can make errors appear or disappear between runs; see #725.

To use Go-compatible checker assignment:

pnpm exec tsrs --noEmit --checkerAssignment go

This does not guarantee deterministic results for every program. See comparison options for closer comparisons with tsgo.

tsrs vs the TypeScript nightly: relative type-checking speed and peak memory by project

Extra features

@tsrs/wasm provides WebAssembly support targeting wasm32-wasip1 (WASI Preview 1).

Learn more

Contributing

The issue tracker is open for bug reports. Please include a minimal reproduction. Pull requests remain closed because we don't have the bandwidth to review them.

See the contributing guide for building from source and running the suites, the Code of Conduct, and security policy for reporting vulnerabilities.

Acknowledgments

We thank the following organizations and contributors:

Depot      Owner.com

We extend special thanks to the TypeScript team for their support.

License

tsrs is a derivative of TypeScript (Copyright Microsoft Corporation), licensed under Apache-2.0. The bundled lib.*.d.ts files are TypeScript's. See NOTICE for attribution. Not affiliated with or endorsed by Microsoft.

About

Rust port of the TypeScript 7 type checker

Resources

Code of conduct

Contributing

Security policy

Stars

2.1k stars

Watchers

3 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages