TypeScript Discriminated Unions for Safer UI State
Four booleans give you sixteen states, and twelve of them are nonsense. Model the four you actually have instead.
2 min read543 views
Category
Type design that catches bugs at compile time instead of in review.
Four booleans give you sixteen states, and twelve of them are nonsense. Model the four you actually have instead.