Using tsc
npx tsc compiles, tsc --noEmit only checks and tsc --watch rebuilds on change. Runtimes like Bun, tsx and Deno run TypeScript directly.
Example
// npx tsc --noEmit
// npx tsx file.ts
console.log("run or check");Result
run or check
Exercise
Check only.
tsc --Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.