I STILL get so many folks misunderstanding the difference between:
@mattpocockuk250 тыс. подписчиков
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.