TypeScript Mapped Types as clauses // Hidden Gem

preview_player
Показать описание
In this tutorial, we look at a little-known feature of Advanced TypeScript called mapped type as clauses.

🚥 Professional Courses

~~ Additional Resources ~~

🏷 #basarat #TypeScript #JavaScript #Tutorial

👇 ❤️ Subscribe for MOORE ❤️ 👇

🌹 Support 🌹

~
Рекомендации по теме
Комментарии
Автор

Nice example. I used to use 'K in keyof state as k extends string? 'get${k}':never' the intersection with string approach is much clearer..

TheMzbac
Автор

Thank you so much, You are awesome, and your content. I hope you continue providing professional content, where it's scarce.

yosefrahahleh
Автор

how can we have a real instance of personStore? as stated at 4:08

marslogics
Автор

Damn good stuff! Do you know how to create mapped types that contain only a single key from an object?

tech
Автор

Another awesome TS content. Do you use TS since it came out?

Nevertheless
Автор

This works at type level, but runtime example is not provided, how can we use this 'personStore' const value?
This code fails to work on runtime as is. Because there was no real runtime value provided to personStore.
Could you please be kind, and share example with working runtime value assigned to personStore?

marslogics
Автор

is your udemy course same as this series?

DamirGrgic
Автор

readability of such code is below 0 :(

SergiySev