JSTAcademy
0 XP
Dashboard
Crash Courses
TypeScript for Frontend
12 min
Basic+200 XP
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.

0%