discriminated unions
-
Solved: How to store functions with same parameter but different generic in an object?
Manage collections of TypeScript functions with differing generic types. Explore wrapper patterns and discriminated unions to maintain type safety and Continue reading
-
Solved: Omit for Discriminated Unions in TypeScript
Learn why TypeScript’s Omit fails on discriminated unions, causing the `never` type, and find 3 robust solutions with code to correctly handle them. Continue reading