A complete guide for interfaces in TypeScript. Learn how to create interfaces and how to use them with classes, functions and object structures. Discover how an interface can help you scale a large project. Get familiar with declaration merging and benefit from extending interfaces. We will also talk about potential use cases of interfaces, so that you get the big picture of how they can be used.
00:00 Intro
00:44 What's an interface
01:52 The interface keyword
02:38 Consuming an interface
05:14 How interfaces work?
06:45 Declaration Merging
08:12 Interfaces with classes
11:25 Connecting unrelated classes
14:26 Interfaces with object structures
15:28 Interfaces with functions
16:30 So when to use an interface?
17:21 Naming Conventions
19:14 Recap
19:56 Outro
20:20 Next episode trailer
Check out my ✨TypeScript course:
https://tltr-typescript.com
Links I mention in the video
My previous video about classes:
• Master Classes In TypeScript
My blog post with all the coding examples:
https://nicotsou.com/tltr-typescript-...
This video belongs to my series Too Long To Read TypeScript. Every episode covers in detail a core concept of the language.
You can support this channel by clicking SUBSCRIBE :)