Get Started with TypeScript
TypeScript is a strongly typed programming language that builds on JavaScript. The best path through the docs depends on where you're coming from โ pick the guide that matches your background.
๐ฑ
New to programming
Start here if TypeScript is your first language. We'll cover the basics of types, variables, and functions from scratch.
Learn TypeScript from scratch โ
๐จ
Coming from JavaScript
You already know JS. Learn how TypeScript layers a type system on top of the language you're used to.
See TypeScript for JS devs โ
โ
Coming from Java or C#
Object-oriented background? TypeScript's structural type system is more flexible than nominal types โ here's what to expect.
See TypeScript for OOP devs โ
ฮป
Coming from a functional language
Familiar with Haskell, OCaml, or F#? TypeScript has a rich structural type system โ here's how it maps to what you know.
See TypeScript for FP devs โ
๐ ๏ธ
Just want to set up tooling
Install the compiler, configure your editor, and build a small project in about five minutes.
TypeScript tooling in 5 minutes โ
๐
Read the Handbook
If you'd rather skip the intros and go deep, jump straight into the language reference handbook.
Open the Handbook โ
Install TypeScript
You can grab the compiler globally or as a project dependency.
bash
# Globally
npm install -g typescript
# Project-local (recommended)
npm install --save-dev typescriptAfter installing, run npx tsc --init to scaffold a tsconfig.json. TypeScript 5.9+ produces a streamlined, prescriptive config out of the box.
