Recent articles

TypeScript: Union to intersection type

Stefan Baumgartner

Written by @ddprrt

Posted in TypeScript

Recently, I had to convert a union type into an intersection type. Working on a helper type UnionToIntersection<T> has taught me a ton of things on conditional types and strict function types, which I want to share with you.

I really like working with non-discriminated union types when I try to model a type where at least one property needs to be set, making all other properties optional. Like in this example:

11ty: Generate Twitter cards automatically

Posted in Eleventy, Jamstack

Are large node module dependencies an issue?

Posted in Node.js, Serverless

TypeScript: Variadic Tuple Types Preview

Posted in TypeScript

TypeScript: Improving Object.keys

Posted in TypeScript

Remake, Remodel. Part 4.

Posted in Remake, Jamstack

Black Lives Matter

Posted in General

TypeScript + React: Typing custom hooks with tuple types

Posted in TypeScript, JavaScript, React

Want more? Check out all 139 articles
Coding soundtrack

Star Trek II - Original Soundtrack

Cinema

Kelsey Hightower: Building cloud-native applications with Kubernetes and Istio

Guide

TypeScript + React

Stay up to date!

3-4 updates per month, spam-free, hand-crafted. Our newsletter gives you links, updates on fettblog.eu, conference talks, coding soundtracks, and much more.