How to Master TypeScript: The Complete 2027 Roadmap
How to master TypeScript in 2027, step by step: this free roadmap takes you from “I know some JavaScript” to writing type-safe libraries, full-stack apps and advanced type-level code. It covers what to learn in each stage, how long each stage takes, the best free and paid TypeScript courses and books, the tools professionals actually use, projects to build, and the questions people most often search for when they learn TypeScript.
Last reviewed: December 2026. Current release line: TypeScript 7.0 (the native compiler written in Go, released July 2026), with TypeScript 6.0 (March 2026) as the bridge release and 7.1 in beta. Check the official release notes and the TypeScript blog for the latest.
Table of Contents
- Who This Roadmap Is For
- TypeScript in 2027: What Changed
- The Roadmap at a Glance
- Stage 0: JavaScript Foundations (if needed)
- Stage 1: TypeScript Basics
- Stage 2: Everyday Type System
- Stage 3: Tooling and Project Setup
- Stage 4: Generics and Type Design
- Stage 5: Advanced and Type-Level TypeScript
- Stage 6: TypeScript in Real Applications
- Stage 7: Mastery, Libraries and the Compiler
- Best TypeScript Resources Compared
- Books
- Courses, Videos and Practice
- Tooling Cheat Sheet
- Recommended tsconfig for 2027
- Projects to Build, by Level
- Common Mistakes and How to Avoid Them
- How to Know You Have Mastered TypeScript
- FAQ
- Where to Go Next
- Contributing
Who This Roadmap Is For
- JavaScript developers who use TypeScript at work but still fight the compiler, reach for
any, or copy types from Stack Overflow without understanding them. - Beginners who want to learn web development with TypeScript from day one (start at Stage 0).
- Backend developers coming from Java, C#, Go or Python who need to read and write TypeScript codebases.
- Library authors who want to publish typed packages that work in Node, Deno, Bun and bundlers.
Time estimates assume about 8-10 focused hours per week. Double them if you have less time; halve them if you already write JavaScript daily.
TypeScript in 2027: What Changed
If you learned TypeScript a few years ago, these are the changes that matter most:
| Change | What it means for you |
|---|---|
| TypeScript 7.0 is a native compiler (Go port, “Project Corsa”) | The TypeScript 7.0 announcement reports full builds typically 8x-12x faster, with parallel parsing, checking and emit. You still install it with npm install -D typescript and run tsc. |
| TypeScript 6.0 was a bridge release | TypeScript 6.0 deprecated old options so that 7.0 could drop them. The TypeScript team recommends upgrading 5.x projects to 6.0 first, fixing deprecations, then moving to 7.0. |
| New defaults | In 7.0, strict defaults to true, module defaults to esnext, and types defaults to [] (you list the @types packages you want). |
| Removed options | target: es5, downlevelIteration, moduleResolution: node/node10/classic, module: amd/umd/systemjs, and baseUrl are errors in 7.0. Use moduleResolution: nodenext or bundler. |
| No programmatic API in 7.0 | Tools that call the compiler API (some lint rules, framework language tools) can keep using 6.0 via the @typescript/typescript6 compatibility package. The 7.1 beta brings a new API. |
Node.js runs .ts files directly |
Modern Node versions strip types at runtime (Node docs). Only “erasable” syntax works there: no enum, no namespaces with runtime code, no parameter properties. The erasableSyntaxOnly compiler flag enforces this. |
Practical takeaway: learn the modern defaults (strict mode, ES modules, nodenext or bundler resolution, erasable syntax). Old tutorials that use namespace, /// <reference> everywhere, or moduleResolution: node are out of date.
The Roadmap at a Glance
| Stage | Focus | Time | You can now… |
|---|---|---|---|
| 0 | Modern JavaScript | 4-8 weeks (skip if fluent) | Write ES2020+ JavaScript, async code, modules |
| 1 | TypeScript basics | 1-2 weeks | Annotate functions, objects, arrays; read compiler errors |
| 2 | Everyday type system | 2-3 weeks | Model data with unions, narrowing, interfaces, utility types |
| 3 | Tooling and setup | 1-2 weeks | Configure tsconfig, lint, test, run TS in Node or a bundler |
| 4 | Generics and type design | 3-4 weeks | Write reusable generic functions and APIs that infer well |
| 5 | Advanced types | 4-6 weeks | Use conditional, mapped and template literal types; solve medium type challenges |
| 6 | Real applications | 6-10 weeks | Ship a typed full-stack app with validated I/O |
| 7 | Mastery | ongoing | Publish typed libraries, debug slow types, read the compiler source |
Total for a working JavaScript developer: roughly 4-6 months to strong professional level, and a year or more of practice for library-author mastery.
Stage 0: JavaScript Foundations (if needed)
TypeScript is JavaScript with types. Every runtime behavior (closures, this, promises, the event loop, modules) is JavaScript behavior. If these feel shaky, fix them first, because type errors often hide JavaScript misunderstandings.
Learn:
- Variables, functions, arrow functions, closures, scope
- Objects, arrays, destructuring, spread, optional chaining, nullish coalescing
- Classes and prototypes,
this - Promises,
async/await, the event loop - ES modules (
import/export) - Array methods (
map,filter,reduce,find,flatMap)
Best free resources:
- The Modern JavaScript Tutorial (javascript.info): the most complete free JavaScript tutorial.
- MDN JavaScript Guide: the reference you will use for the rest of your career.
- Eloquent JavaScript, 4th edition by Marijn Haverbeke: free online, great exercises.
Milestone: you can build a small command-line tool or web page in plain JavaScript that fetches data from an API and handles errors.
Stage 1: TypeScript Basics
Time: 1-2 weeks.
Learn:
- Why types: catching bugs before runtime, editor autocomplete, safe refactoring
- Primitive types:
string,number,boolean,bigint,symbol,null,undefined - Arrays (
string[],Array<string>), tuples ([string, number]) - Object types, optional properties (
?),readonly - Function parameter and return types
- Type inference: when to annotate and when to let TypeScript infer
typealiases vsinterface(both fine; pick a team convention)- Union types (
string | number) and literal types ("GET" | "POST") anyvsunknownvsnever- Reading compiler errors from the bottom up
Do this:
- Read the TypeScript Handbook chapters “The Basics” and “Everyday Types”.
- Experiment in the TypeScript Playground: hover over values to see inferred types.
- Convert three small JavaScript files you have written into TypeScript with strict mode on.
Rule of thumb: annotate function parameters and public return types; let TypeScript infer local variables.
type Method = "GET" | "POST";
interface Request {
url: string;
method: Method;
body?: unknown;
}
function describe(req: Request): string {
return `${req.method} ${req.url}`;
}
Milestone: you can type an existing small JavaScript program without using any.
Stage 2: Everyday Type System
Time: 2-3 weeks. This is where most of your day-to-day value comes from.
Learn:
- Narrowing:
typeof,instanceof,in, equality checks, truthiness - Discriminated unions (tagged unions) and exhaustive
switchwithnever - Type predicates (
x is Foo) and assertion functions (asserts x is Foo) - Utility types:
Partial,Required,Readonly,Pick,Omit,Record,ReturnType,Parameters,Awaited,NonNullable keyof,typeof(type query), indexed access types (T["key"])as constand thesatisfiesoperator- Function overloads (and when a union is better)
- Classes: access modifiers,
implements, abstract classes - Structural typing: “if it has the right shape, it fits”
- Excess property checks and why they only apply to fresh object literals
The single most important pattern is the discriminated union:
type Result<T> =
| { ok: true; value: T }
| { ok: false; error: string };
function unwrap<T>(r: Result<T>): T {
if (r.ok) return r.value; // narrowed to the success branch
throw new Error(r.error); // narrowed to the error branch
}
type Shape =
| { kind: "circle"; radius: number }
| { kind: "rect"; w: number; h: number };
function area(s: Shape): number {
switch (s.kind) {
case "circle": return Math.PI * s.radius ** 2;
case "rect": return s.w * s.h;
default: {
const unreachable: never = s; // compile error if a case is missing
return unreachable;
}
}
}
Resources:
- Handbook chapters: Narrowing, More on Functions, Object Types, Classes.
- Utility Types reference.
- Total TypeScript Essentials by Matt Pocock: free to read online, with exercises.
Exercises:
- Model a checkout flow (cart, payment pending, paid, failed, refunded) as a discriminated union and write a function that handles every state.
- Write a type guard
isUser(x: unknown): x is Userand use it on parsed JSON. - Replace an
enumwith a union of string literals plus anas constobject, and compare.
Milestone: you rarely need type assertions (as), and when you do, you can explain why.
Stage 3: Tooling and Project Setup
Time: 1-2 weeks. Many “TypeScript problems” are really configuration problems.
Learn:
tsconfig.json:strict,target,module,moduleResolution,lib,types,outDir,rootDir,noEmit,isolatedModules,verbatimModuleSyntax,noUncheckedIndexedAccess- Type checking vs transpiling:
tscchecks; tools like esbuild, SWC, Vite, Bun and Node’s type stripping only remove types and never report type errors - ES modules vs CommonJS, and how
nodenextresolution followspackage.json"type"and"exports" .d.tsdeclaration files and@types/*packages from DefinitelyTyped- Project references and
tsc --buildfor monorepos - Linting with typescript-eslint (type-aware rules like
no-floating-promises) or Biome - Testing with Vitest or Node’s built-in test runner
How to run TypeScript in 2027:
| Situation | Best pick | Why |
|---|---|---|
| Scripts and small Node services | Node.js type stripping (node app.ts) |
No build step; stick to erasable syntax |
Node with tsconfig paths, enums or JSX |
tsx | Full TypeScript transform, fast |
| Frontend apps | Vite | Instant dev server; run tsc --noEmit in CI for checks |
| All-in-one runtime | Bun or Deno | Run .ts natively, built-in test runners |
| Publishing a library | tsc for .d.ts plus a bundler such as tsdown |
Correct types and dual-format output |
Always run tsc --noEmit (or tsc -b) in CI. The fast transpilers do not type check.
Milestone: you can start a new project from an empty folder with strict TypeScript, linting, tests and a CI type check, and explain every tsconfig option you set.
Stage 4: Generics and Type Design
Time: 3-4 weeks.
Learn:
- Generic functions, interfaces, classes and type aliases
- Constraints (
<T extends object>), defaults (<T = string>) - How inference works from arguments, and
consttype parameters (<const T>) NoInfer<T>to stop a parameter from driving inference- Variance basics: why
(x: Animal) => voidis assignable to(x: Dog) => voidbut not the reverse - Designing APIs that infer well so callers never write type arguments
- Branded (nominal) types for IDs and units:
type UserId = string & { readonly __brand: "UserId" } - Making illegal states unrepresentable
function groupBy<T, K extends PropertyKey>(items: T[], key: (item: T) => K): Record<K, T[]> {
const out = {} as Record<K, T[]>;
for (const item of items) {
const k = key(item);
(out[k] ??= []).push(item);
}
return out;
}
const byRole = groupBy(users, (u) => u.role); // Record<"admin" | "member", User[]>
Resources:
- Handbook: Generics, Keyof, Indexed Access Types.
- Effective TypeScript by Dan Vanderkam (paid book, 2nd edition 2024): 83 specific items on designing good types. The best “second book”.
- Matt Pocock on YouTube: short, practical videos on generics and inference.
Exercises:
- Write a typed
pick(obj, ...keys)that returns exactly the picked properties. - Write a typed event emitter where
on("login", handler)knows the payload type for each event name. - Build a tiny typed state machine where
transition(state, event)only accepts valid events for the current state.
Milestone: you can write a generic utility that infers the right type for every caller without them passing type arguments.
Stage 5: Advanced and Type-Level TypeScript
Time: 4-6 weeks. Not every app developer needs all of this, but library authors and senior engineers do.
Learn:
- Conditional types:
T extends U ? X : Y, distribution over unions, and how to stop it with[T] extends [U] infer: extracting types (T extends Promise<infer U> ? U : T)- Mapped types:
{ [K in keyof T]: ... }, key remapping withas, modifiers (-readonly,-?) - Template literal types:
`on${Capitalize<E>}`, parsing strings at the type level - Recursive types: deep
Readonly, JSON types, path types like"user.address.city" - Function overload resolution and
thistypes - Declaration merging and module augmentation (adding fields to a library’s types)
- Decorators (the TC39 standard version supported since TypeScript 5.0)
unique symbol, assertion signatures,accessorfields- When not to use advanced types: readability and compile time matter
type EventName<T extends string> = `on${Capitalize<T>}`;
type Handlers = { [E in "click" | "focus" as EventName<E>]: () => void };
// { onClick: () => void; onFocus: () => void }
type DeepReadonly<T> = T extends (...args: any[]) => any
? T
: T extends object
? { readonly [K in keyof T]: DeepReadonly<T[K]> }
: T;
Practice:
- type-challenges: the standard set of type-level puzzles, from “easy” to “extreme”. Aim to solve all easy and most medium ones.
- Type-Level TypeScript by Gabriel Vergnaud: interactive course; early chapters free, full course paid.
- Handbook: Conditional Types, Mapped Types, Template Literal Types, Declaration Merging.
Milestone: you can read the type definitions of a library like Zod or tRPC and explain how they produce their inferred types.
Stage 6: TypeScript in Real Applications
Time: 6-10 weeks, mostly building.
Types stop at your program’s edges. Data from HTTP requests, databases, environment variables, localStorage and JSON.parse is unknown until you validate it. Mastery means making those boundaries safe.
Learn:
- Runtime validation with schema libraries that infer static types: Zod, Valibot, ArkType
- End-to-end types across client and server: tRPC, typed OpenAPI clients, or shared schema packages
- Typed database access: Drizzle ORM, Prisma, Kysely
- Frontend: React with TypeScript (React TypeScript Cheatsheet), Vue, Svelte or Angular
- Backend: Node with Hono, Fastify, NestJS, or Express
- Error handling: typed results vs exceptions; libraries like Effect for teams that want typed errors and dependency injection
- Testing types themselves:
expectTypeOfin Vitest,@ts-expect-errortests - Migrating a JavaScript codebase incrementally:
allowJs,checkJs, JSDoc types, then convert file by file
Pick a stack (one sensible default, not the only option):
| Layer | Default pick | Strong alternatives |
|---|---|---|
| Runtime | Node.js LTS | Bun, Deno |
| Web framework (API) | Hono | Fastify, NestJS, Express |
| Frontend | React + Vite | Vue, Svelte, Angular, Next.js |
| Validation | Zod | Valibot, ArkType |
| Database | Drizzle + PostgreSQL | Prisma, Kysely |
| Tests | Vitest | Node test runner, Jest |
| Lint/format | typescript-eslint + Prettier | Biome |
Milestone: you have shipped an app where invalid input is rejected at the boundary and the rest of the code never sees any.
Stage 7: Mastery, Libraries and the Compiler
Time: ongoing.
Learn:
- Publishing packages:
exportsmaps,typesconditions, ESM-only vs dual packages,declarationanddeclarationMap - Validate your package with Are the Types Wrong?
- Performance of types:
tsc --extendedDiagnostics,--generateTrace, avoiding huge unions and deep recursion. Read the TypeScript performance wiki - Writing declaration files for untyped libraries: Declaration Files guide
- The compiler: follow the TypeScript repository, which now holds the Go-based compiler (the old typescript-go staging repo is archived but its history is worth browsing); read issues labelled “Design Limitation” to learn where the type system draws lines
- Soundness holes you should know: bivariant method parameters,
anyleaking, array index access withoutnoUncheckedIndexedAccess, type assertions - Contribute: fix a type in DefinitelyTyped, improve types in a library you use, answer questions on the TypeScript Discord or Stack Overflow
Milestone: other developers use your types without reading your docs, because the editor tells them everything.
Best TypeScript Resources Compared
| Resource | Type | Cost | Level | Best for |
|---|---|---|---|---|
| TypeScript Handbook | Official docs | Free | Beginner to advanced | The authoritative reference; read it end to end once |
| Total TypeScript Essentials | Book (online) | Free online | Beginner to intermediate | Practical, exercise-driven start |
| TypeScript Deep Dive | Book (online) | Free | Intermediate | Older but still useful explanations of the type system and JS interop |
| The Concise TypeScript Book | Book (GitHub) | Free | Beginner to intermediate | Compact overview of the whole language |
| Effective TypeScript | Book | Paid | Intermediate to advanced | Designing good types; best second book |
| Learning TypeScript | Book + projects | Paid book, free projects | Beginner | Structured first book with exercises |
| Type-Level TypeScript | Interactive course | Partly free | Advanced | Conditional, mapped and recursive types |
| type-challenges | Puzzles | Free | Intermediate to expert | Practising type-level skills |
| Total TypeScript workshops | Video course | Paid (free tutorials too) | All | Deep, exercise-first workshops |
| Exercism TypeScript track | Exercises + mentoring | Free | Beginner to intermediate | Small exercises with human feedback |
Best pick: read the official Handbook alongside Total TypeScript Essentials (both free), then read Effective TypeScript, then grind type-challenges. That combination covers 95% of what professionals need.
Books
Free (legally free to read online):
- TypeScript Handbook: official, maintained by the TypeScript team.
- Total TypeScript Essentials by Matt Pocock: free online edition of the book.
- TypeScript Deep Dive by Basarat Ali Syed: free GitBook; some sections predate modern features.
- The Concise TypeScript Book by Simone Poggiali: free, open source.
Paid (worth buying):
- Effective TypeScript, 2nd edition, Dan Vanderkam (O’Reilly, 2024): effectivetypescript.com.
- Learning TypeScript, Josh Goldberg (O’Reilly, 2022): learningtypescript.com.
- Programming TypeScript, Boris Cherny (O’Reilly, 2019): solid on the type system, older on tooling.
Courses, Videos and Practice
- TypeScript Playground: try any snippet, switch compiler versions, share links.
- TypeScript for JavaScript Programmers: the official 5-minute tour.
- TSConfig Reference: every compiler option explained.
- Matt Pocock (YouTube): free tips and deep dives.
- Total TypeScript free tutorials: free interactive tutorials, such as Beginner’s TypeScript and React with TypeScript.
- freeCodeCamp: free full-length TypeScript videos on its YouTube channel and articles on its news site.
- Exercism TypeScript track: free, with optional human mentors.
- type-challenges: type-level puzzles.
- Execute Program: paid interactive TypeScript courses with spaced repetition.
- Frontend Masters: paid; Mike North’s TypeScript courses are well regarded.
Tooling Cheat Sheet
| Task | Tool | Notes |
|---|---|---|
| Type check | tsc --noEmit / tsc -b |
The only source of truth for type errors |
| Run a file | node file.ts, tsx, bun, deno |
Node needs erasable syntax |
| Lint | typescript-eslint | Use the type-checked configs for rules like no-floating-promises |
| Format/lint (fast) | Biome or Prettier | |
| Test | Vitest | Includes expectTypeOf for type tests |
| Bundle a library | tsdown, tsc |
Check output with Are the Types Wrong? |
| Validate data | Zod, Valibot | Infer TS types from schemas |
| Find unused code | Knip | Unused files, exports and dependencies |
| Monorepo | npm/pnpm workspaces + project references | pnpm is popular for workspaces |
Useful compiler commands:
npx tsc --init # create a tsconfig with comments
npx tsc --noEmit # type check only
npx tsc -b --verbose # build with project references
npx tsc --showConfig # print the effective config
npx tsc --extendedDiagnostics # timing and memory stats
npx tsc --generateTrace trace # trace slow type checking
npx tsc --explainFiles # why each file is included
Recommended tsconfig for 2027
A strict starting point for a Node.js service or library (adjust module/moduleResolution to preserve/bundler for Vite or other bundled apps):
{
"compilerOptions": {
"target": "es2023",
"module": "nodenext",
"moduleResolution": "nodenext",
"strict": true,
"noUncheckedIndexedAccess": true,
"exactOptionalPropertyTypes": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"verbatimModuleSyntax": true,
"erasableSyntaxOnly": true,
"isolatedModules": true,
"skipLibCheck": true,
"declaration": true,
"sourceMap": true,
"rootDir": "src",
"outDir": "dist",
"types": ["node"]
},
"include": ["src"]
}
Why these:
noUncheckedIndexedAccess:arr[i]andrecord[key]becomeT | undefined, which matches reality.exactOptionalPropertyTypes:{ a?: string }no longer silently accepts{ a: undefined }.verbatimModuleSyntax: forcesimport typefor type-only imports, which is what runtime type stripping needs.erasableSyntaxOnly: errors onenum, runtime namespaces and parameter properties, so code runs under Node type stripping.types: ["node"]: since TypeScript 7 defaultstypesto[], list the global type packages you actually use.
Projects to Build, by Level
Beginner
- Typed to-do CLI: add, list and complete tasks stored in a JSON file. Validate the file on load.
- Unit converter: branded types for
Meters,Feet,Celsiusso you cannot mix them up. - Weather dashboard: fetch a public API, validate the response with Zod, render in the browser.
Intermediate
- Typed event bus:
emitandonwith an event-map generic so payloads are checked. - Form library: field names, values and errors all inferred from one schema.
- REST API with Hono or Fastify + Drizzle: typed routes, validated bodies, integration tests.
- Migrate a JavaScript project: take an open-source JS repo (or your own) and convert it with
allowJs/checkJs, file by file, to strict TypeScript.
Advanced
- Type-safe router:
route("/users/:id")infers{ id: string }params with template literal types. - Typed SQL query builder: column names and result shapes inferred from a schema definition.
- Publish an npm package: dual ESM types, tests for types with
expectTypeOf, a clean Are the Types Wrong? report. - Contribute to DefinitelyTyped or improve the types of a library you use.
- Solve 30+ medium and some hard type-challenges, writing a short explanation for each.
Common Mistakes and How to Avoid Them
| Mistake | Fix |
|---|---|
Using any to silence errors |
Use unknown and narrow, or fix the underlying type |
Casting with as instead of validating |
Validate external data with a schema; use satisfies to check literals without widening |
| Assuming types exist at runtime | Types are erased; use runtime checks (typeof, schemas, discriminants) |
Turning off strict |
Keep it on; migrate gradually with // @ts-expect-error and a burn-down list |
| Over-engineered types nobody can read | Prefer simple unions and interfaces; add type-level cleverness only where it pays |
| Trusting the bundler for type safety | Run tsc --noEmit in CI |
enum in code meant for Node type stripping |
Use as const objects with union types |
Forgetting noUncheckedIndexedAccess |
Turn it on early; adding it later produces many errors at once |
| Optional properties everywhere | Model states as unions so impossible combinations cannot be expressed |
| Floating promises | Enable @typescript-eslint/no-floating-promises |
How to Know You Have Mastered TypeScript
You can:
- Explain structural typing, type widening, narrowing and inference to a colleague
- Write a discriminated union with an exhaustive check from memory
- Write generic functions that infer correctly without explicit type arguments
- Read and write conditional, mapped and template literal types
- Configure
tsconfigfor Node, a bundler and a published library, and explain each option - Validate all external input and keep
anyout of your codebase - Debug a slow type check with
--extendedDiagnosticsor--generateTrace - Publish a package whose types work in ESM and CommonJS consumers
- Solve most medium type-challenges without hints
- Explain the TypeScript 6 to 7 migration and the trade-offs of type stripping
FAQ
How long does it take to learn TypeScript? If you already know JavaScript, you can be productive in 1-2 weeks and comfortable in 2-3 months. Advanced type-level skills and library design take 6-12 months of regular practice. From zero programming experience, plan for 4-6 months to cover JavaScript first.
Should I learn JavaScript before TypeScript? Learn the JavaScript fundamentals first or at the same time. TypeScript adds types on top of JavaScript; it does not change how JavaScript runs. Many people now write TypeScript from their first week, which is fine as long as they also learn the JavaScript behavior underneath.
Is TypeScript worth learning in 2027? Yes. Most new professional JavaScript projects use TypeScript, major frameworks ship TypeScript-first templates, and the native TypeScript 7 compiler removed most of the old complaints about slow builds. GitHub’s Octoverse 2025 report found TypeScript overtook Python and JavaScript in August 2025 to become the most used language on GitHub by monthly contributors.
Is TypeScript 7 a different language? No. TypeScript 7 is a new implementation of the compiler (written in Go) that aims to type check the same way as TypeScript 6. Code that compiles under 6.0 without deprecated options should compile under 7.0. The language you learn is the same.
Do I still need tsc if Node.js can run TypeScript?
Yes. Node only strips types; it does not check them. Use tsc --noEmit (or your editor) to find type errors, and Node, tsx, Bun or Deno to run code.
type or interface?
Both work for object shapes. Interfaces can be merged and extended with extends and give slightly clearer error messages for object types; type aliases can express unions, tuples, mapped and conditional types. Many teams use interface for object shapes and type for everything else. Consistency matters more than the choice.
Should I use enums?
In new code, many teams prefer union types of string literals or as const objects. They are erasable (they work with Node type stripping and erasableSyntaxOnly), tree-shake well, and behave predictably. enum still works when you compile with tsc.
What is the difference between unknown and any?
any turns off type checking for that value. unknown means “could be anything” but forces you to narrow before using it. Use unknown for untrusted data.
What should I learn after TypeScript? A framework (React, Vue, Svelte or Angular), a backend framework (Hono, Fastify or NestJS), SQL and a typed ORM, and testing. Many TypeScript developers also pick up Go or Rust for performance-critical services.
Is the TypeScript certification worth it? There is no official TypeScript certification from Microsoft. Employers judge TypeScript skill through projects, code reviews and interviews, so a public project with clean types is worth more than a certificate.
How do I get faster type checking on a big codebase?
Upgrade to TypeScript 7, use project references with tsc -b, set skipLibCheck, avoid enormous unions and deeply recursive types in hot paths, and profile with --generateTrace.
Where to Go Next
- Frontend: React documentation (TypeScript examples throughout) and the React TypeScript Cheatsheet.
- Full stack: Next.js, Remix / React Router, SvelteKit, Nuxt.
- Backend: Node.js docs, Hono, NestJS.
- Functional and effect systems: Effect.
- Keep up to date: the TypeScript blog, the TypeScript roadmap and iteration plans on GitHub, and the TC39 proposals repository for upcoming JavaScript features.
- Interviews: practice explaining narrowing, generics and
unknownvsanyout loud; they come up often in frontend and full-stack interviews.
Contributing
Found a broken link, an outdated recommendation or a great free resource that is missing? Open an issue or a pull request. Please keep additions:
- Real and verified (link to the official page),
- Legally free if listed as free,
- Clearly marked as paid when they cost money,
- Written in your own words.
If this helped you, a star helps others find it.
More free resources
Part of the Ralpberry Labs open-source collection. See also Top 100 Open Source.