filmov
tv
TypeScript Plugged In: Distributive Mapped Types
Показать описание
00:00 intro
00:40 regular omit
01:40 omit doesn't distribute an object union
02:02 keys of an object union
03:10 T extends T
03:41 distributive omit
Often, unions get distributed when applying operations on types. But sometimes they don't - and you could find it pretty unintuitive what is happening etc. Learn how to enforce distribution over #typescript mapped types
00:40 regular omit
01:40 omit doesn't distribute an object union
02:02 keys of an object union
03:10 T extends T
03:41 distributive omit
Often, unions get distributed when applying operations on types. But sometimes they don't - and you could find it pretty unintuitive what is happening etc. Learn how to enforce distribution over #typescript mapped types