1 00:00:00,810 --> 00:00:03,920 In this video we're going to start to discuss interfaces in typescript. 2 00:00:04,050 --> 00:00:06,150 So as usual we'll get a plain definition. 3 00:00:06,210 --> 00:00:08,070 Some examples and so on. 4 00:00:08,370 --> 00:00:12,210 As a quick aside here we're going to spend a pretty good amount of time and typescript talking about 5 00:00:12,210 --> 00:00:18,720 interfaces the interplay between interfaces and classes is how we're going to really get very strong 6 00:00:18,720 --> 00:00:21,570 code reuse when we are writing typescript code. 7 00:00:21,570 --> 00:00:27,330 So if you understand interfaces really well it's going to help you design really excellent applications. 8 00:00:27,630 --> 00:00:31,830 As a matter of fact the entire second half of this course where we're going to work on a lot of applications 9 00:00:31,890 --> 00:00:36,750 is really going to come down to understanding how we can get interfaces and classes to work together 10 00:00:37,050 --> 00:00:43,230 really really nicely so if you don't understand this first take through interfaces totally fine because 11 00:00:43,230 --> 00:00:45,820 we're going to be discussing them quite a bit. 12 00:00:45,840 --> 00:00:46,110 All right. 13 00:00:46,140 --> 00:00:48,420 So with that in mind let's take a look at a quick definition here. 14 00:00:49,230 --> 00:00:54,570 So when we have interfaces we are going to write out some amount of code to define a new type inside 15 00:00:54,570 --> 00:00:56,020 of application. 16 00:00:56,040 --> 00:01:02,010 The goal this new type is to describe the different property names and a different property types that 17 00:01:02,010 --> 00:01:08,060 that object has so when we create an interface we are creating a new type inside of application just 18 00:01:08,060 --> 00:01:12,260 the same way that we have types like string or boolean or no. 19 00:01:12,440 --> 00:01:14,480 We're creating another new type. 20 00:01:14,480 --> 00:01:20,620 It's a custom type that you and I are going to define understanding interfaces is a lot easier when 21 00:01:20,620 --> 00:01:22,010 you have some code in front of you. 22 00:01:22,060 --> 00:01:23,220 So let's do a quick pause right here. 23 00:01:23,230 --> 00:01:25,720 Come back in the next video and start to write out some examples.