Loading
Current section: 7. Interfaces 5 exercises
Problem

Declaration Merging

Loading exercise

Transcript

00:00 Okay. We're going to get into something a little bit more interesting with interfaces, and that is their unique ability to merge, declaration merging. So in this exercise, your job is to create a config that will declaration merge and even across modules. So this is, a an exercise where we're working in our index TS file, but we're also working in another file so that you can see how this works across, module boundaries. It's a really, really powerful feature of interfaces.

00:30 Really only useful if you're making a library that people are going to be using. But, and so I wouldn't actually recommend this in the day to day work that you're doing building applications. But you should understand how it works and so that's why we're doing this exercise. Hope you have a good time with it.