Typescript Index Signatures, keyof Assertions & the Record Utility Type
Web Dev Roadmap for Beginners (Free!):
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
1 view
13
3
3 months ago 00:08:22 1
Why I don’t use Aseprite - The Tools I Use for Indie Game Dev (2D and 3D)
4 months ago 08:21:57 1
TypeScript Full Course for Beginners | Complete All-in-One Tutorial | 8 Hours
5 months ago 00:20:41 1
Comfortably Numb, Time, Money covers of Pink Floyd at Campo de Fiori (Giordano Bruno) - Roma, Italy
5 months ago 00:04:53 4
Интеграция TypeScript во Vue приложение #33 - Конвертация файла
5 months ago 00:24:10 1
Typescript Index Signatures, keyof Assertions & the Record Utility Type