Transcript
00:00 Hey. Welcome to the intersection types exercise. This is gonna be great. We're going to learn how to take multiple types and combine them together. So here's a a quick example of the syntax for that.
00:10 So a has a name string, b has an h number, and c is those things combined. So, c will have, name and age. It's kinda like the spread operator or object dot assign, in JavaScript but with types. Pretty cool. So, it is kind of the opposite of intersection where intersection can say, hey.
00:31 This is one or the other thing. The, the, intersection type is both of those things, so name and age. So, you can actually, combine multiple things in this way as well. So here's this one and that one, and then here are the my specifics, and here are the extra other things, that, can be added on to this. So, yeah.
00:55 Super helpful. Hopefully, you have a good time with this one. It should be pretty quick. There's not a whole lot, to it beyond this. It just then becomes a matter of repetition, keep on doing this stuff.
01:05 So jump into the exercise. We'll see you there.
