Issue with Creating Union Types in TypeScript - Effect Community