TypeScript for JavaScript Developers

Types that catch real bugs, without turning your codebase into a puzzle

4.7(4,021 reviews)61,880 learners

Created by Amara Osei

Updated May 2026EnglishIntermediate14h 30m96 lectures

What you will learn

  • Model your data with unions, literals and discriminated unions
  • Read the error messages the compiler actually gives you
  • Use generics where they earn their keep and avoid them where they do not
  • Type third-party libraries and untyped JSON safely
  • Migrate an existing JavaScript codebase incrementally
  • Configure tsconfig without cargo-culting someone else's

Course content

13 sections · 96 lectures · 14h 30m total length

  • What this course covers, and what it does notPreview04:00
  • How to get the most out of itPreview04:00
  • Setting up and downloading the exercise files06:00

  • The type system's shapePreview15:00
  • The type system's shape in detail07:00
  • A closer look at the type system's shape06:00
  • Worked example: the type system's shape11:00
  • Where the type system's shape goes wrong10:00
  • Exercise: the type system's shape14:00
  • The type system's shape in practice13:00
  • Two approaches to the type system's shape05:00
  • The type system's shape — questions from previous students04:00

Topics covered

The type system's shapeUnions and narrowingDiscriminated unionsInterfaces versus type aliasesGenericsUtility typesTyping async codeDeclaration filesValidating external datatsconfig in depthIncremental migration

Requirements

  • Solid JavaScript — this course assumes the language, not the types
  • A project you would like to add types to helps, but is not required

Description

TypeScript is easy to adopt badly — `any` everywhere, or type gymnastics nobody on the team can read. This course sits in the useful middle: enough of the type system to model your domain properly, and clear guidance on when to stop.

Your instructor

AO
Amara Osei

Staff engineer, teaching JavaScript since 2014

4.7 instructor rating3,05,570 learners4 courses

Amara has spent eleven years building large front-end codebases and the last six teaching people how to work in them. Her courses avoid clever tricks in favour of the boring patterns that survive a team of thirty and a two-year rewrite.

Learner reviews

4.74,021 reviews
  • 5 star73%
  • 4 star22%
  • 3 star3%
  • 2 star1%
  • 1 star1%
  • JD
    Jonas D.6 February 2026

    Very practical. I applied something from module four at work the same week.

  • FG
    Farid G.2 October 2025

    Exactly what I needed. It assumes you are an adult and does not over-explain.

  • NL
    Niall L.7 January 2026

    Clear explanations without the usual filler. I watched most of it at 1.25x and still followed everything.

  • WO
    Wei O.5 March 2026

    Worth it for the section on common mistakes alone — I recognised two things I have been doing wrong for years.

  • SD
    Sam D.5 October 2025

    The pacing is right. Nothing is padded out, and the exercises are short enough that I actually did them.

  • SR
    Sam R.11 February 2026

    I came in knowing a bit and still learned plenty. The middle third is the strongest part.

  • ZL
    Zoe L.1 April 2026

    Good balance between theory and doing. I would have liked a couple more exercises, but that is a small complaint.

  • ZK
    Zoe K.3 December 2025

    Worth it for the section on common mistakes alone — I recognised two things I have been doing wrong for years.

  • KS
    Kemi S.2 March 2026

    Very practical. I applied something from module four at work the same week.

Showing 9 of 4,021 reviews.

Learners also looked at

More from Web Development and beyond.

All Web Development

Python for Data Analysis

Priya Raghunathan

4.7(9,315)
24h162 lecturesBeginner
₹2,299₹4,499
Bestseller

Modern JavaScript From the Ground Up

Amara Osei

4.7(8,412)
28h 30m186 lecturesBeginner
₹2,499₹4,499
Bestseller

Photography Foundations

Yusuf Demir

4.8(6,218)
13h88 lecturesBeginner
₹1,499₹3,299
Bestseller

React in Production

Amara Osei

4.8(6,187)
22h148 lecturesIntermediate
₹2,999₹5,999
Bestseller