TypeScript Mapped types explained

preview_player
Показать описание
Mapped types are a great way of transforming existing types into new types. In this video tutorial, you will learn how to create mapped types and how to leverage mapped types in your project to transform read-only interfaces into interfaces with optional properties or even how to transform a simple interface into a type that defines getters.

TypeScript keyof explained:
Рекомендации по теме
Комментарии
Автор

I was impressed by the capitalization trick in the end — I think, it requires more attention with more explanation and examples.
PS Please get a decent microphone as it will increase your audience. Hope to see more tricks from you!

v
Автор

Thanks for sharing.
P.S. Intro music too loud and sudden.

zshn
Автор

How did you first example work when the there was typo in `Proeperty`?

This technique looks very convenient?

KrisMeister
Автор

Excellent techniques ! Thanks for sharing.

AlainBoudard
Автор

I get that this is somewhat advanced usage. But where do we draw the line between readability and flexibility?
6:30 is great but certainly very complex from a readability standpoint.

zshn
Автор

This feels awesome, but I cant really explain why.
Can someone explain some real use-cases where classes would not be the better choice?

robertklinger
Автор

Hi, just a constructive feedback here: your intro is too loud. Either remove the intro or lower the volume by a lot. Thanks for the video. Cheers

peterjordanson
Автор

Cool but in terms of readability and maintainability, I don’t think it adds value

vredurs
Автор

But it would be 100 times better if you would use it on some code.

limerickgangster