Type error when returning Effect directly in TypeScript - Effect Community