Extracting Error Types from Effects for Documentation Generation
Is there a way to extract the errors without causing them?
E.g. if I have an
Effect<never, alwaysError, never>
Effect<never, alwaysError, never>
is there something that I can call to give me the
alwaysError
alwaysError
class?
I'm trying to decide how to do some documentation generation (openapi), and would love to include the errors within the spect but it's a extendable system, so I won't always be the person writing the code, and the codebase is fairly large already so i would rather not have to manually define them everywhere - seemed like a good idea to ask before doing normal approach
I'm using effect/schema for the rest of the entity descriptions and examples etc