TypeScript Partial and Required Utility Types #Shorts

preview_player
Показать описание
How does Partial Utility Type in TypeScript work? And how does the Required Utility Type work? Let's look at the examples.

📚 Resources:

And don't forget to subscribe for more videos like this 😊

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

Nice 👍 I didn’t know partial and required exists

out_fur_blood
Автор

Useful on backend to create Dtos on backend when you have a Create<Entityname>dto . Use Partial to make everything optional with Omit to remove certain fields to be on the UpdateDto.

chess
Автор

You can also make it optional using '?' or is it just for interfaces?

HR-pzts
Автор

main diff between type and interface??

maheshshirsat
Автор

i love your channel and teaching style. I'm chemist having problem with struggling economy in my country so Im serious switching to programming. my first money earned is going to your channel. If you have any course I will find it and buy it.

beloaded