Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

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

Matt Pocock profil fotoğrafı
Matt Pocock1 yıl önce

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

Théo LUDWIG profil fotoğrafı
Théo LUDWIG1 yıl önce

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>

Matt Pocock profil fotoğrafı
Matt Pocock1 yıl önce

Pick is already strict, FYI

Shelton Louis profil fotoğrafı
Shelton Louis1 yıl önce

You're right!

onurhan profil fotoğrafı
onurhan1 yıl önce

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

Jacky Hu profil fotoğrafı
Jacky Hu1 yıl önce

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

Matt Pocock profil fotoğrafı
Matt Pocock1 yıl önce

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

marc niclas profil fotoğrafı
marc niclas1 yıl önce

Nah mate, too many characters

Matt Pocock profil fotoğrafı
Matt Pocock1 yıl önce

It's only me in the video

Suumiboor profil fotoğrafı
Suumiboor1 yıl önce

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