Typescript Index Signatures, keyof Assertions & the Record Utility Type

Typescript Index Signatures, keyof Assertions & the Record utility type are all useful when creating object types and accessing their properties dynamically. We look at examples using all 3 in this TS tutorial. 🚀 Become a full-stack web dev with Zero To Mastery Courses: - The Complete Web Developer: - Master the Coding Interview: - Junior to Senior Dev Roadmap: 🚩 Subscribe ➜ 📬 Course Updates ➜ ❓ Questions - Please post them to my Discord ➜ ☕ Buy Me A Coffee ➜ 👇 Follow Me On Social Media: Github: Twitter: LinkedIn: 🔗 All Resources for this Typescript Course: 🔗 Playlist for this Typescript Course: Typescript Index Signatures, keyof Assertions & the Record Utility Type (00:00) Intro (00:05) Welcome (00:30) Starter code and set up (02:00) What are index signatures? (02:33) Why you need an index signature (06:09) Index signature syntax (08:14) readonly modifier (08:52) Non-existing properties (09:52) Required properties combined with an index signature (11:10) Optional properties (13:40) keyof Assertions (16:53) Record utility type vs index signatures 📚 Suggested Pre-requisites for this Typescript course: 🔗JavaScript for Beginners full course: 📚 Tutorial References: 🔗 Typescript Official Website: 🔗 Anders Hejlsberg, Creator of Typescript and C# Interview: 🔗 Stackoverflow Survey Results: #technology-most-popular-technologies 🔗 MDN - Static Typing: 🔗 MDN - Dynamic Typing: 🔗 MDN - Type Coercion: 🔗 TS Type Assertions: #type-assertions ⚙ Web Dev Tools: 🔗 Chrome Browser: 🔗 Visual Studio Code (VS Code): 🔗 & npm: 🔗 Live Server VS Code Extension: Was this Typescript Index Signatures, keyof Assertions & Record utility type tutorial helpful? If so, please share. Let me know your thoughts in the comments. #typescript #index #signatures
Back to Top