Рет қаралды 42,129
In this video I'll explain how to create and use Mapped Types in TypeScript.
00:28 A simple example
02:59 Create a new type based on an existing object type literal (using keyof to get properties of a type)
05:14 Recreating the Pick type
07:19 Explaining how mapped type is used by Record type
09:05 Difference between an interface with an index signature and the Record type
11:12 How to add a specific property to a mapped type?
👨💻 My Udemy Course:
Using TypeScript with React
www.udemy.com/course/react-wi...