TS

Programming Language

·View all resources →

TypeScript Learning Roadmap

TypeScript is JavaScript with types — and it's become the default for serious frontend and full-stack development. Learning TypeScript makes you dramatically more hireable: most job postings at tech companies now list it as required, not optional.

Total time

2–4 months

Stages

5 stages

Job-ready at

Stage 3

Career paths

3 paths

1
2
3
4
5
1

Stage 1: TypeScript Foundations

Add types to your JavaScript

2–3 weeks

Topics to cover

What TypeScript is and the compilation stepBasic types: string, number, boolean, null, undefinedType inference — when TS figures it outExplicit type annotationsArrays and tuplesInterfaces vs type aliasesOptional and readonly propertiesFunction signatures and return typesEnumstsconfig.json basics

Bold = especially important

Milestone

You can add TypeScript to an existing JavaScript project and annotate variables, function parameters, and return types without fighting the compiler.

2

Stage 2: Advanced Types

Use TypeScript's full power

3–4 weeks

Topics to cover

Generics — reusable typed functionsUnion types and intersection typesLiteral types and type narrowingtypeof and instanceof type guardsDiscriminated unionsUtility types: Partial, Required, Pick, OmitRecord, ReturnType, ParametersTemplate literal typesMapped typesConditional types

Bold = especially important

Milestone

You write generic utilities and understand how major libraries like React, Zod, and Prisma use advanced TypeScript. You stop fighting the type system.

3

Stage 3: TypeScript with React

✓ Min. Job Ready

Type your components and hooks

2–3 weeks

Topics to cover

Typing React component propsReact.FC vs function declarationsTyping useState, useRef, useReducerTyping event handlers: MouseEvent, ChangeEventTyping custom hooksTyping context and providersGeneric componentsTyping API responsesStrict mode and catching common bugsZod for runtime validation + type inference

Bold = especially important

Milestone

You write fully typed React applications with no `any` types. Your code matches what you see in professional TS/React codebases.

4

Stage 4: Patterns & Configuration

Architect TypeScript projects

2–3 weeks

Topics to cover

Strict TypeScript: noImplicitAny, strictNullChecksModule resolution and path aliasesDeclaration files (.d.ts)Type-safe API clients: tRPC or typed fetchPrisma or Drizzle — type-safe database queriesType-safe environment variablesMonorepo TypeScript setupDecorators and metadata (NestJS pattern)ESLint TypeScript rulesMigrating a JS codebase to TS

Bold = especially important

Milestone

You can set up and maintain TypeScript configuration for a production codebase, and help a team migrate from JavaScript to TypeScript.

5

Stage 5: Full-Stack TypeScript

End-to-end type safety

Ongoing

Topics to cover

🔷 Next.js: typed server components and actions🔗 tRPC: end-to-end typed APIs🗄️ Prisma: generated types from your database schema🛡️ Zod: runtime validation that generates TS types🧪 Testing: typed Vitest + Testing Library☁️ Cloudflare Workers with TypeScript🔒 Type-safe authentication (NextAuth v5, Lucia)📡 GraphQL with TypeScript (GraphQL Code Generator)

Bold = especially important

Milestone

You build end-to-end type-safe applications where types flow from the database schema all the way to the UI — eliminating entire classes of runtime bugs.

Ready to start learning?

Browse our curated TypeScript resources — every course, book, and video ranked by quality.

View TypeScript Resources →