Transcript from the "Wrapping Up" Lesson
[00:00:43] And hopefully you get to feel that you have a lot more structure, you have a lot more compile time assurance that you're passing the right things to a component. That when you reach into state or props you're not gonna get mixed up between those two because it's almost like there's a white list of things you're allowed to see.
[00:01:01] I even spotted around the room some typos being caught just because you had one letter too short on the name of a property, and like you got some immediate feedback that that was happening. We definitely used the power of types to make our code expressive. And that it's very clear what these different types of functions we built want, and we're able to basically throw up a red flag if we're ever misaligning the pieces of code that weren't made to go together.
[00:01:32] When we started stripping away some of the type definitions, particularly like in that autocomplete function, we got rid of some of the explicit type definitions on values that functions were returning. We see the type inference can go a long way to figuring out what these things are gonna be without us having to explicitly say so, which makes for easier refactoring.
[00:02:30] This is meant to be something where you do a few adjustments as you flip the switch on. And then almost like moving from CSS to SASS or something like that, you can take advantage of more features that are TypeScript specific as you choose to take advantage of those.