Crash Courses · Basic
TypeScript for Frontend
Generics, utility types, discriminated unions
12 min read+200 XP on completionCert: Frontend Engineering
Tap any word in the text below to start reading from there.
# TypeScript for Frontend
Generics
Write reusable, type-safe code without committing to a specific type.
Utility Types
Partial makes all properties optional. Required makes all required. Pick selects keys. Omit excludes keys. Record creates a dictionary type.
Discriminated Unions
Use a shared kind field to safely narrow union types in switch statements.
Reading progress
0% read
In this module
Generic
Partial<T>
Discriminated union
Type narrowing
0%