Module · Intermediate · 1h 15m
Module 2: Generics, strictness and boundaries
Reusable types that stay readable, the compiler options worth turning on, and keeping types honest where data enters.
- typescript
- module
Inside this module
- Write a generic function with constraints
- Enable strict options and fix what they find
The full module opens with a membership that covers TypeScript.
Sign in if you already subscribe.
Sign inLessons
- 01Generics that stay readable
Lesson · 25 min · Type parameters for functions and types that work over many shapes without losing precision.
- 02Strict mode and what it finds
Lesson · 25 min · The compiler options that catch real bugs, and how to turn them on in an existing project.
- 03Types at the boundaries
Lesson · 25 min · Keeping types honest where data enters and leaves: APIs, databases, forms and environment.

