Making `ConfigError` Opaque in TypeScript

is there a way to make ConfigError opaque? , I've noticed typescript de-restructure the errors into
const program: Effect.Effect<void, UnknownException | And | Or | InvalidData | MissingData | SourceUnavailable | Unsupported | NoSuchElementException | RunTimeError, never>
Was this page helpful?