Creating a Generic `TaggedError` Factory Function in TypeScript - Effect Community