Back to Browse

TypeScript Plugged In: Distributive Mapped Types

151 views
Premiered May 28, 2024
5:19

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 https://ducin.dev #typescript #javascript 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 typescript playground: https://tsplay.dev/mLOnZN

Download

0 formats

No download links available.

TypeScript Plugged In: Distributive Mapped Types | NatokHD