filmov
tv
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:
👇 Follow Me On Social Media:
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:
📚 Tutorial References:
⚙ Web Dev Tools:
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
Комментарии