Preferred syntax for defining a tagged error in TypeScript - Effect Community