4 Advanced TypeScript Features - Create Types Dynamically

Опубликовано: 05 Октябрь 2024
на канале: Nicos Tsourektsidis
2,081
122

Let's review 4 of the most advanced TypeScript features, that let you automatically generate types on the fly. Instead of creating manually your types, you can use these features to instruct TypeScript on what you want to reuse from your existing types. Did you know that the typeof keyword behaves differently on TypeScript? We will also learn about the keyof operator, lookup types and the keyword infer. Use these features in your generic types, to automate your workflow.

Read the article with the coding examples:
https://nicotsou.com/tltr-typescript-...

Contents
00:00 Intro
01:49 The typeof keyword
05:15 The keyof keyword
07:19 Lookup Types
08:33 The infer keyword
12:25 Outro

Check out my ✨TypeScript course:
https://tltr-typescript.com

Links mentioned in the video
My playlist with all the episodes of this series:
   • TLTR; TypeScript  

This video belongs to my series Too Long To Read TypeScript. Every episode covers in detail a core concept of the language.

❤️ How to support this channel?
Like this video
Subscribe to the channel
Share this video with your friends on social media (only if it helped you)