Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap

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: https://bit.ly/WebDevMaster
- Master the Coding Interview: https://bit.ly/FAANGInterview
- Junior to Senior Dev Roadmap: https://bit.ly/WebDevRoadmap-JrtoSr

Subscribe https://bit.ly/3nGHmNn

Course Updates https://courses.davegray.codes/

Questions - Please post them to my Discord https://discord.gg/neKghyefqh

Buy Me A Coffee https://www.buymeacoffee.com/davegray

Follow Me On Social Media:
Github: https://github.com/gitdagray
Twitter: https://twitter.com/yesdavidgray
LinkedIn: https://www.linkedin.com/in/davidagray/

All Resources for this Typescript Course: https://github.com/gitdagray/typescript-course

Playlist for this Typescript Course: http://bit.ly/3GcNJ78

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: https://youtu.be/EfAl9bwzVZk

Tutorial References:
Typescript Official Website: https://www.typescriptlang.org/
Anders Hejlsberg, Creator of Typescript and C# Interview: https://dev.to/destrodevshow/typescript-and-c-both-created-by-the-same-person-named-anders-hejlsberg-42g4
Stackoverflow Survey Results: https://survey.stackoverflow.co/2022/#technology-most-popular-technologies
MDN - Static Typing: https://developer.mozilla.org/en-US/docs/Glossary/Static_typing
MDN - Dynamic Typing: https://developer.mozilla.org/en-US/docs/Glossary/Dynamic_typing
MDN - Type Coercion: https://developer.mozilla.org/en-US/docs/Glossary/Type_coercion
TS Type Assertions: https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#type-assertions

Web Dev Tools:
Chrome Browser: https://www.google.com/chrome/
Visual Studio Code (VS Code): https://code.visualstudio.com/
Node.js & npm: https://nodejs.org/
Live Server VS Code Extension: https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer

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