TypeScript Console
Run TypeScript right inside Chrome DevTools.
The DevTools console only speaks JavaScript. TypeScript Console adds a panel where you write TypeScript, press Cmd/Ctrl+S, and it runs against the page you're on, with output in the regular console.
How it works
- 1
Open DevTools and switch to the TypeScript Console panel.
- 2
Show the console drawer so you can see the output.
- 3
Write TypeScript and press
Cmd/Ctrl+S, or click Run.
More than a REPL
Modern TypeScript
The latest TypeScript syntax, plus TSX.
npm packages
Import packages directly. They're loaded from esm.sh.
Works on the page
Code runs in the inspected page, so you can query and change the DOM like in the console.
Real errors and breakpoints
Syntax and runtime errors are reported clearly, and debugger stops in DevTools as usual.
Your code runs in the page you're inspecting and isn't sent anywhere. The only requests TypeScript Console makes are to esm.sh, when you import an npm package. There is no analytics.
Found a bug or want a feature? Open an issue or come say hi.