Video yükleniyor...
Video Yüklenemedi
I STILL get so many folks misunderstanding the difference between: Pick, Omit Exclude, Extract They should be called: PickFromObject, OmitFromObject ExcludeFromUnion, ExtractFromUnion Here's a breakdown:
32,246 görüntüleme • 1 yıl önce •via X (Twitter)
10 Yorum

Here's my course - it's 30% off right now

I always end up copy/pasting the stricter version in my projects and never use the original one: export type OmitStrict<T, K extends keyof T> = Omit<T, K> export type PickStrict<T, K extends keyof T> = Pick<T, K>

Pick is already strict, FYI

You're right!

I can recommend an interactive article about difference between Pick and Omit

🙋♂️ type Album = { // ... artist: string // ... } what's diff between 1. Pick<Album, 'artist'> 2. Album['artist'] thanks 🙏

type Album = { artist: string }; Album['artist']; // string Pick<Album, 'artist'>; // { artist: string }

Nah mate, too many characters

It's only me in the video

It's a weird multi-level almost set-like thing that syntax... would love to see something cleaner, at least that's my current understanding.
Benzer Videolar
Sensitive content
I’ll get called a supremacist for this breakdown. So be it.
Amiri King
139,517 görüntüleme • 1 yıl önce
Sensitive content
TL drunkards, here's a video showing the difference between real and fake Corona. Be careful what you drink!
🇿🇦TheGreatDlamini🇿🇦
105,138 görüntüleme • 1 yıl önce
Sensitive content
She spoke about the reality of so-called empowered girls these days. They have degrees and jobs but still want alimony and maintenance. Many girls are abusing her in the comments and calling her a pick me.
︎ ︎venom
37,398 görüntüleme • 1 yıl önce
