matchable
A utility to define and match on tagged unions (like enums with payloads) — safely.
result-guard
Type-safe error handling with discriminated unions and type guards for TypeScript
ts-tagged-union
A modern TypeScript library designed to reduce boilerplate for tagged unions, also known as discriminated unions. This library is also an implementation of algebraic data types