Streamlined Discriminated Union Decoding in TypeScript with jsonous's New Decoder
TypeScript developers love discriminated unions (or tagged unions). They provide a fantastic way to model states, events, or different kinds of data structures in a type-safe manner. When working with external data sources like JSON APIs, however, de...
Apr 12, 20254 min read17
