TypeScript
Sep 2026 6 min read
Typing Your Data So the Bad States Simply Can't Happen
Most TypeScript tutorials describe data you have. The bigger win is using types to forbid states you don't want — via discriminated unions and satisfies.
Read more
1 article tagged “Design”.
Most TypeScript tutorials describe data you have. The bigger win is using types to forbid states you don't want — via discriminated unions and satisfies.