category-theory
Prevent Impossible States Pt. 1 - Union Types
Use TypeScript discriminated unions to require the right fields, narrow object types, and catch unhandled cases.
Use TypeScript discriminated unions to require the right fields, narrow object types, and catch unhandled cases.