Skip to content

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.

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 typescript

After installing, run npx tsc --init to scaffold a tsconfig.json. TypeScript 5.9+ produces a streamlined, prescriptive config out of the box.

Try it without installing

The TypeScript Playground lets you write, share, and experiment with TypeScript directly in the browser.

Open the Playground โ†’

What's new in 6.0

TypeScript 6.0 is the latest release โ€” a transition step toward the native 7.0 compiler. See the new features and deprecations.

Read the release notes โ†’

Made with โ™ฅ๏ธŽ by Chan27-2