infer and Distributive Conditional Types, Without the Folklore
How to pull types out of functions and promises with infer, why unions distribute, and the [T] trick when you do not want that.
4 min read
Tag
2 articles · 8 min of reading
How to pull types out of functions and promises with infer, why unions distribute, and the [T] trick when you do not want that.
How to stop mixing user IDs and order IDs, when brands beat extra classes, and the limits of compile-time branding at runtime.