I STILL get so many folks misunderstanding the difference between:
@mattpocockuk25万 位关注者
32,246 次观看
10 条评论
评论来自 X (Twitter) 上的原帖

@mattpocockuk
Here's my course - it's 30% off right now
3 个赞

@theoludwig_
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>
3 个赞

@mattpocockuk
Pick is already strict, FYI
4 个赞

@SheltonLouisX
You're right!
2 个赞

@Onurhan1337
I can recommend an interactive article about difference between Pick and Omit
2 个赞

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

@mattpocockuk
type Album = { artist: string }; Album['artist']; // string Pick<Album, 'artist'>; // { artist: string }
6 个赞

@niclas_hermann
Nah mate, too many characters
1 个赞

@mattpocockuk
It's only me in the video
11 个赞

@suumiboor
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.