Write Solid Code with Branded Types in TypeScript 🛡️

Опубликовано: 19 Октябрь 2024
на канале: TypeScript TV with Benny
1,488
57

In this video, we'll explore several advanced TypeScript concepts, including branded types, type predicates, utility types, type aliases, intersection types, assertion functions, and custom type guards. Together, these features empower you to write safer and more predictable code.

My FREE programming apps:
https://apps.apple.com/app/id659282498
https://play.google.com/store/apps/de...

My FREE TypeScript Course:
https://typescript.tv/

Timeline:
00:00 - Introduction
02:33 - Creating and Using Type Aliases
03:35 - Enhancing Type Aliases with Branded Types
06:02 - Using Type Guards and Type Predicates
08:45 - Combining Type Guards and Branded Types
10:09 - Building Assertion Functions for Type Predictions
12:55 - Benefits of Using Branded Types in TypeScript
14:01 - Implementing Utility Types for Branded Types
15:44 - Risks of Branded Types

#typescript #javascript #nodejs