Write Solid Code with Branded Types in TypeScript 🛡️

Write Solid Code with Branded Types in TypeScript 🛡️

1.849 Lượt nghe
Write Solid Code with Branded Types in TypeScript 🛡️
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/details?id=com.welovecoding.app *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