Blog
Learn by playing with the code.
Coding guides with live examples: press play, change the code, and see what happens.
- TypeScriptBasics
Type Narrowing in TypeScript
How TypeScript goes from a broad type like string | null to a specific one, and why that stops your code from crashing. With live examples you can play with.
Read the guide - TypeScriptBasics
Type Inference in TypeScript
You don't have to write a type for everything. See how TypeScript works out types from your values, where it gets it wrong, and when you should step in and write the type yourself.
Read the guide - TypeScriptBasics
Literal Types in TypeScript
Types like number and string accept almost anything. Literal types let you say exactly which values are allowed, so TypeScript catches typos and wrong values before your code runs.
Read the guide