10 parts
Add types to JavaScript without the jargon: basic types, interfaces, generics, narrowing, utility types, and TypeScript with React — hands-on.
What TypeScript is, the bugs it catches before runtime, and why it took over, with live, type-checked examples from the very start.
7 min read
The core TypeScript types (string, number, boolean, arrays, any vs unknown), plus type annotations vs inference, with live runnable code.
8 min read
Describe object shapes in TypeScript with interfaces and type aliases: when to use which, plus optional and readonly fields, with examples.
9 min read
Type function parameters and return values in TypeScript, and let inference do the work, with practical, runnable examples.
Type collections in TypeScript: arrays, object types, tuples, and the differences that matter, with clear, runnable examples.
Model 'one of several' with union types and safely narrow them with typeof, in, and discriminated unions, with live examples.
Generics in TypeScript without the headache: reusable, type-safe functions and types, from <T> to constraints, with examples.
Type React the practical way: props, state, events, and children, the patterns you'll actually use, with a live TypeScript + React editor.
The TypeScript utility types worth knowing: Partial, Pick, Omit, Record, and Required, and what each does, with runnable examples.
A practical capstone: convert a small JavaScript project to TypeScript step by step, covering tsconfig, types, and fixing errors, hands-on.