Latest Posts
Day 25: Modules and Namespaces
Organize your code with ES Modules. Import, Export, and deciding when to use Namespaces (spoiler: rarely).
Day 24: Async/Await and Promises
Handling asynchronous operations in TypeScript. Typing Promises and async functions correctly.
Day 23: Template Literal Types
Manipulate string types with template literal syntax. Create powerful string pattern types.
Day 22: Conditional Types
Ternary operators for types? Yes. Learn how to choose types based on conditions.
Day 21: Mapped Types
Create new types based on old ones by iterating over keys. The foundation of Utility Types.
Day 20: Utility Types
Partial, Pick, Omit, Readonly... TypeScript comes with a toolkit. Learn how to use it.
Day 19: The keyof Operator
Unlock the power of index queries. Learn how to extract keys from a type and use them.
Day 18: Discriminated Unions
The most elegant pattern in TypeScript. Handle complex state and logic with ease using tagged unions.
Day 17: Type Guards and Narrowing
Master the art of runtime type checking. Use typeof, instanceof, and custom type predicates.