A better way to use 3rd-part types (Extract & Exclude)
HTML-код
- Опубликовано: 12 мар 2023
- TypeScript has a ton of really great utility types that come built-in, and this video highlights two that, I think, don't get enough attention. It's Extract and Exclude. These types are great for making powerful utility functions and also for easy use of library types.
#typescript #javascript #reactjs #reactquery Наука
Fav TypeScript content! :)
Thanks so much for the top notch content! Been really enjoying leveling up my typescript skills with you!
I ❤ typescript
❤
Damn man, I thought I knew Typescript but this last example with react-query takes it to another level. And comes at just the right time as I am implementing react-query in a project right now. Thanks Andrew!
I've been struggling with some ts problems that might be solved using these solutions, gonna check it out! Thank you for the content
Easy to understand and useful, thanks :)
What then is the difference between Omit, Pick and Extract, Exclude?
Yeah where does it make sense to opt for Omit/Pick over the others?
The difference is about the type these util types expect. The Omit/Pick types work on interfaces, Extract/Exclude are about union types.
Hmm thanks for the video. Quick qn: Where does the difference come in between Omit, Pick and Extract, Exclude?
Where do you learn this stuff?
Is this called Error Boundaries?
hi Andrew! i'm your fan)
I'm currently writing a technical article and I would like to ask you to review it before publication. Can you help me with that? How can I connect with you?
i sent connect via linkedin
Hey! Email me at the address on my site shaky.sh
@@andrew-burgess I feel stupid because I can't find an email address on your site
@@edgarabgaryan8989 I should make it more visible, but at the bottom of any post. Try this one: shaky.sh/tools/
@@andrew-burgess document.body.innerHTML.includes('@') === false