Playground
Compile TypeScript in your browser.
The tsc-rs parser, type checker and emitter, compiled to WebAssembly. Edit the code on the left; the JavaScript and the diagnostics update as you type. Click a diagnostic to jump to it. Nothing is sent to a server.
input.ts
output.js
// Loading the compiler (about 1.2 MB compressed)...This build checks one file on its own, with built-in fallback declarations in place of the full lib.d.ts and no @types packages, so code that depends on library or framework types can report errors the command line compiler would not. The bindings are the tsc_rs_wasm crate; see the WebAssembly guide to use it in your own page.