Simplifying Union Type Matching in TypeScript - Effect Community