TypeScript Intermediate: Types That Survive Real Projects
This is for people who can write basic TypeScript and now work on code that other people also touch. You will use generics, utility types and third-party typings so shared code stays honest when the data changes. If you keep reaching for any and as at every boundary, the compiler stops helping exactly where the bugs are.
Course access
-
Generics Without the Fog (empty)3Lessons · 15 min
-
Generic Functions That Keep the Input Type
Write generic functions with one or two type parameters, limit them with extends and drop the ones that link nothing. After this, a function can accept many types and still hand back the right one.
5 min -
Generic Types for Lists, Results and Caches
Put a type parameter on a type to describe a page of items, a success or error result and a cache, and give it a default when one fits. After this, you write a shape once and fill in the contents where you use it.
5 min -
-
-
Types That Transform Other Types (empty)3Lessons · 20 min
-
Utility Types: Partial, Pick, Omit and Record
Build variations of one type with Partial, Pick, Omit and Record, and see where Partial lets undefined through. After this, a rename in the original type reaches every variation.
5 min -
Mapped Types You Can Actually Read
Read a mapped type in four pieces, change its modifiers, tie validators to a type and rename keys with as. After this, you can read the built-in utility types and write one when you need it.
10 min -
-
-
Working With Code You Didn't Write (empty)3Lessons · 20 min
-
@types Packages and When DefinitelyTyped Is Wrong
Fix the missing declaration error, install the types package and recognise the three ways those types go wrong. After this, you know when to trust a declaration and how to correct one in a single place.
10 min -
Typing fetch JSON Without Lying to Yourself
See why response.json() gives you any, why a cast checks nothing and how a guard function and one generic helper fix it. After this, data from a server only gets a type it has earned.
5 min -
-
-
Classes and Modules in TypeScript (empty)3Lessons · 15 min
-
Classes With public, private and protected
Type class properties, use the three access modifiers and the constructor shortcut, and see that private is erased at run time. After this, you know what the modifiers protect and what they do not.
5 min -
Modules, Exports and Avoiding Circular Types
Export and import with import type, see why two files that import each other fail at run time and break the loop with a third file. After this, shared types and values have a place that does not create a cycle.
5 min -
-
-
Strictness That Pays Off (empty)3Lessons · 15 min
-
unknown vs any and Safe Parsing
Use unknown for data from outside, narrow it with typeof, in and instanceof, and parse text into a typed result. After this, an any from one JSON.parse no longer spreads through your code.
5 min -
Discriminated Unions for API Responses That Vary
Model success, error and loading as separate shapes with one tag, and let a never check find the case you forgot. After this, the compiler knows which properties exist in each case.
5 min -
-
-
Final Check: TypeScript Intermediate (empty)1Lessons · 15 min
-
About
This is for people who can write basic TypeScript and now work on code that other people also touch. You will use generics, utility types and third-party typings so shared code stays honest when the data changes. If you keep reaching for any and as at every boundary, the compiler stops helping exactly where the bugs are.
- Responsible
- Mary Q
- Last Update
- 10/22/2026
- Completion Time
- 1 h 40 min
- Members
- 1
Reviews
Sign in to write a reviewComments
Sign in to commentNo comments yet.